- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 34490 Articles for Programming
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
285 Views
Image data pre−processing is an essential step in training deep learning models that take images as input. In large−scale image datasets, pre−processing images can be computationally expensive and can result in high memory consumption. To address this issue, generators are often used to pre−process and feed images into a deep learning model. In Python, the Keras library provides a powerful tool for pre−processing image data using generators. The ImageDataGenerator class can be used to create a generator that reads images from a specified directory and performs pre−processing operations on the fly. The ImageDataGenerator class provides several methods for performing pre−processing ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
466 Views
In this article, we will learn how we can perform cluster sampling in Pandas. But before we deep dive into that, let's explore a little about what sampling is in Pandas, as well as how pandas help us to do that. Sampling In Pandas, sampling refers to the process of selecting a subset of rows or columns from a DataFrame or Series object. Sampling can be useful in many data analysis tasks, such as data exploration, testing, and validation. Pandas provides several methods for sampling data, including: DataFrame.sample(): This method returns a random sample of rows from a ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
8K+ Views
In this article, we will learn how to clear an LRU cache implemented in Python. Before we dive deep into the coding aspect, let's explore a little about what an LRU cache is and why it is popular. LRU Cache, also known as the Least Recently Used Cache, is a data structure that is widely used in computer science to improve the performance of applications by reducing the time it takes to access frequently−used data. The LRU Cache stores a limited number of items and removes the least recently used item when the cache becomes full. This allows ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
4K+ Views
Multithreading is a powerful technique used in modern programming languages to execute multiple threads simultaneously. In Python, the threading module is used to implement multithreading. Multithreading allows programs to perform multiple tasks at once and can improve the performance of applications. When working with multithreading in Python, it's essential to know how to check if a thread is running or not. The is_alive() method provided by the Thread class is a simple and effective way to check the status of a thread. By using this method, you can determine whether a thread has started, is running, or has finished its ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
410 Views
In today's digital world, PDF files have become an essential medium for storing and sharing information. However, sometimes it can be difficult to find a specific string of text within a PDF document, especially if the file is lengthy or complex. This is where Python, a popular programming language, comes in handy. Python provides several libraries that allow us to interact with PDF files and extract information from them. One common task is to search for a particular string within a PDF file. This can be useful for various purposes, such as data analysis, text mining, or information retrieval. In ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
2K+ Views
Pandas is a popular Python library used for data manipulation and analysis. It provides powerful tools for working with structured data, such as tables or spreadsheets. Pandas can handle a variety of data formats, including CSV, Excel, SQL databases, and JSON, among others. One of the critical features of Pandas is its two primary data structures: Series and DataFrame. A Series is a one−dimensional array−like object that can hold any data type, such as integers, floating−point numbers, strings, or even Python objects. Series are labelled, meaning that they have an index that is used to access and manipulate the data. ... Read More
![Mukul Latiyan](https://www.tutorialspoint.com/assets/profiles/308320/profile/60_124990-1617352847.jpg)
84 Views
PyTorch is an open−source machine learning library developed by Facebook's AI Research team. It is primarily used for deep learning applications, including natural language processing, computer vision, and reinforcement learning. PyTorch provides two main features: a multidimensional Tensor object and a collection of functions that operate on these Tensors. Torch The Tensor object in PyTorch is similar to NumPy's ndarray, but with added capabilities for utilizing GPUs and building dynamic computational graphs. These computational graphs are constructed on−the−fly during the execution of the program, allowing for efficient memory usage and more flexible model architectures. Additionally, PyTorch has a modular design ... Read More
![Ayush Singh](https://www.tutorialspoint.com/assets/profiles/680995/profile/60_3152495-1689250670.png)
80 Views
You must use the proper sorting algorithms in order to organise an array in increasing order using the specified operations. Determine the most effective method first depending on the array size and data properties. Bubble Sort, Merge Sort, and Quick Sort are examples of popular sorting algorithms. Apply the chosen algorithm repeatedly, shifting the positions of elements based on comparisons between them until the array is organised in ascending order. The effectiveness of an algorithm is determined by how time−consuming it is, with the best ones producing quicker results. The array may be effectively organised in increasing order by carefully ... Read More
![Ayush Singh](https://www.tutorialspoint.com/assets/profiles/680995/profile/60_3152495-1689250670.png)
219 Views
In the field of network analysis, the number of nodes with the highest degree, signifying the greatest number of connections to other nodes in the network, is referred to as the "count of nodes with maximum connection" in an undirected graph. The number of edges that incident upon a node determines its degree. We may determine the critical or central points in the graph by identifying the nodes with the highest degree. This has important ramifications for a variety of applications, including network research, social network studies, and optimisation methods. Understanding these crucial nodes makes it easier to comprehend the ... Read More
![Ayush Singh](https://www.tutorialspoint.com/assets/profiles/680995/profile/60_3152495-1689250670.png)
61 Views
For Q queries, do the following to see if node X is in node Y's subtree or vice versa: Starting at node Y, navigate its subtree while keeping an eye out for node X. If discovered, X is in Y's subtree. Start at node X and navigate its subtree to find node Y in the reverse scenario. If Y is found, Y is a member of X's subtree. To efficiently carry out these tests, use tree traversal algorithms like Depth−First Search (DFS) or Breadth−First Search (BFS). The procedure guarantees accurate relationship determination between the nodes in each query. Methods Used ... Read More