PyTorch Understanding the differences and use Cases of torch.Tensor.max and torch.max in PyTorch torch.Tensor.max is an instance method that applies directly to a torch.Tensor object and is mainly used to find maximum values within a single tensor. torch.max is a module-level function used to compare two tensors element-wise.
Python Dodgeball game in PyGame [with source code] In this OpenGenus article, let us create a Dodgeball game in Python. You can customize your game along the way without having to stick to my design choices.
Python List and Dictionary Comprehension in Python In this article, we will be discussing list and dictionary comprehension and it's relevance.
Python Deploying Python Web Applications with Docker and Kubernetes Deploying Python web applications has become increasingly efficient with the advent of containerization technologies like Docker and orchestration tools like Kubernetes.
Python Different ways to add element to List in Python Lists are a staple data structure in any python programmer’s toolkit. It is not only versatility but efficient also. In this OpenGenus article, I will discuss a variety of methods in the standard library to add an element or an iterable to a list in Python.
Python Builder Pattern implementation in Python The Builder pattern solves this problem by separating the construction process from the object's representation, enabling the creation of different representations using the same construction steps.
Python Open World RPG Game in Python In this OpenGenus article, we will cover the steps necessary for creating your very own open-world RPG game in Python programming language.
Python Exploring MySQL Connector for Python: A Beginner's Guide Are you stepping into the world of Python and databases? If so, you're likely to encounter various libraries that facilitate the interaction between your Python scripts and databases. One such powerful tool is mysql-connector-python.
Python How to make a click logger [with Python code] In this article at OpenGenus, we will make a program that tracks the active windows in your laptop that you click on and prints their names on the terminal. This is program is just for education purposes.
Machine Learning (ML) Demystifying Kernel Density Estimation (KDE) in Python In this article at OpenGenus, we will start by a general and a mathematical understanding of Kernel Density Estimation and then after exploring some applications of KDE, we, stepwise, implement it in Python.
Python Streamlit library in Python [Practical Introduction] Streamlit is a Python library that enables us to quickly build front-end web pages for our data application by using just Python codes.
Python Hangman game in Python [with source code] Hangman is a fun game for two or more players. In this game, one player picks a word, phrase, or sentence, and the others try to guess it by suggesting letters or numbers.
Python Building Ping Pong Game with Pygame in Python In this article at OpenGenus, we will walk you through the process of building a simple yet engaging ping pong game using Pygame.
Django PDF Library application in Django [WebDev Project] In this article at OpenGenus, we have developed a Full-Stack Django application that allows users to download, read, and upload books.
Python Reasons to consider Django Rest Framework: A Comprehensive Guide In this article at OpenGenus, we will explore Django Rest Framework in-depth, covering its key features, benefits and best practices.
Python AVL Tree in Python [using OOP + Inheritance] AVL (Adelson-Velsky and Landis) tree is a self-balancing binary search tree, where the balance factor of each node is the difference between the heights of its left and right subtrees i.e. either -1, 0, or 1.
Python time module in Python The time module in python provides us with functionality to work with the time format, accessing current system time, changing representation format of time etc.
Python Linear Search in Python using OOP Concepts In this article at OpenGenus, we will explore how to implement the linear search algorithm in Python using Object-Oriented Programming (OOP) concepts.
Python Union() function in Python In this article at OpenGenus, we have explored Union() function in Python with multiple examples.
quick sort Quick Sort in Python using OOP In this article at OpenGenus, we will explore the implementation of Quick Sort in Python using the principles of Object-Oriented Programming (OOP). By utilizing classes and objects, we'll implement the Quick Sort algorithm to efficiently sort arrays or lists of elements.
Python Selection Sort in Python using OOP concepts [Iterative + Recursive] To implement selection sort in Python using an object-oriented approach, we can create a class called SelectionSort that encapsulates the functionality of the sorting algorithm.
Python Merge Sort in Python [with OOP, Iterative + Recursive] This article at OpenGenus will provide you with the information and tools you need to utilize the power of merge sort in Python, whether you are a novice looking for an introduction to sorting algorithms or an experienced programmer looking to improve your grasp of merge sort.
Python Heap in Python using Object-Oriented Programming (OOP) concepts In this article at OpenGenus, we will implement Heap in Python using Object Oriented Programming.
Python Tetris in Python using Pygame [project] In this article at OpenGenus, we will explore the implementation of Tetris game in Python using pygame library. Pygame is a powerful and popular open-source library for developing games using the Python programming language.
Python Queue in Python using OOP concepts In this article at OpenGenus, we will explore the implementation of a Queue in Python using the principles of Object-Oriented Programming (OOP). By utilizing OOP concepts in Python, we can create and manipulate queues in a structured and efficient manner.