Found 10784 Articles for Python

How Autoencoders works?

Priya Mishra
Updated on 24-Jul-2023 19:58:46

87 Views

Autoencoders are a highly effective category of neural networks utilized for unsupervised learning and reducing the dimensionality of data. They possess the ability to learn compact representations of input data by encoding it into a latent space of lower dimensions and subsequently decoding it to restore the original input. This article delves into the workings of autoencoders in Python, specifically employing the Keras library, to provide a comprehensive understanding of their functionality. What are autoencoders? Autoencoders are a specialized form of neural networks designed to reconstruct input data. They consist of two main parts: a decoder network, responsible for recreating ... Read More

How are variables stored in Python (Stack or Heap)?

Priya Mishra
Updated on 24-Jul-2023 19:56:34

2K+ Views

In Python, variables are stored differently based on their type and scope either it can be stored in the heap or in the stack which are the two main memory regions utilized for a variable storage. Python, being a high-level programming language, abstracts away many low-level memory management details from the programmer. However, it's still essential to understand how variables are stored in Python to write efficient and optimized code. In this article we will see How are variables stored in Python (Stack or Heap). Stack The stack is a region of memory used for storing local variables and ... Read More

Hover Text and Formatting in Python-Plotly

Priya Mishra
Updated on 24-Jul-2023 19:53:07

2K+ Views

Python-Plotly, a widely-used data visualization library, offers various features to enhance visualizations, one such feature is hover text and formatting, which allows users to provide additional information and customize the appearance of tooltips when hovering over data points. Data visualization is a powerful tool for understanding and presenting complex information. In this article, we will explore how to utilize hover text and formatting in Python-Plotly to improve data visualization and convey insights effectively. How to hover Text and Formatting in Python-Plotly? Below are examples of how to hover Text and Formatting in Python-Plotly with different hovermodes. Default hovermode Follow the ... Read More

House Price Prediction using Machine Learning in Python

Priya Mishra
Updated on 24-Jul-2023 19:42:36

3K+ Views

With the introduction of the power of machine learning in predicting house prices using Python has revolutionized the real estate industry. In this article, we explore the dynamic world of house price prediction using cutting-edge machine-learning techniques. By harnessing the vast potential of data analysis, feature engineering, and model training in Python, we aim to provide a comprehensive guide that equips readers with the tools to make informed decisions in the ever-changing housing market. Linear regression for house price prediction Linear regression is a mainly used technique for the prediction of house prices due to its simplicity and interpretability. It ... Read More

Horizontal Stripplot with Jitter using Altair in Python

Priya Mishra
Updated on 24-Jul-2023 19:40:58

110 Views

One of the most crucial aspects of data analysis is proficiently visualizing data to pinpoint trends and patterns rapidly and a highly effective tool to visualize categorical and continuous variables is by using a horizontal strip plot with jitter . Our article will demonstrate how to create horizontal stripplot with Jitter utilizing Altair—a popular Python library renowned for its declarative statistical visualization features. What are Stripplot and Jitter? A stripplot displays individual data points in a horizontal arrangement, allowing us to observe their distribution across different categories. However, when multiple data points share the same horizontal position, they can ... Read More

Horizontal Boxplots with Points using Seaborn in Python

Priya Mishra
Updated on 24-Jul-2023 19:38:57

501 Views

Boxplots are one of the most popular tools available for data visualization of the datasets which is mainly created using a python library called Seaborn, which provides a simple and powerful way to create both horizonatal and vertical boxplots and other types of visualizations. In this article, we will be focusing on how to create a horizontal boxplot with points using Seaborn in Python. What is a boxplot? First of all, let’s define what a boxplot is. A boxplot is a graphical representation of the dataset that convey the distribution of the data in the dataset using outliers, quartiles, and ... Read More

homogeneity_score using sklearn in Python

Priya Mishra
Updated on 24-Jul-2023 19:36:17

534 Views

While working with clustering algorithms in Python, it is important to be able to evaluate the performance of the models, and one of the popular metrics for evaluating the performance of the clustering model is the homogeneity score using sklearn. It measures how well the labels assigned by a clustering algorithm match the true labels of a dataset. The higher the homogeneity score, the better the clustering algorithm performed. In this article, we'll take a closer look at the homogeneity score and how to compute it using Scikit-learn in Python. What is the Homogeneity score? The homogeneity score is the ... Read More

Holistically-Nested Edge Detection with OpenCV and Deep Learning

Priya Mishra
Updated on 24-Jul-2023 19:10:19

574 Views

Holistically-Nested Edge Detection (HED) is a deep learning-based method for detecting edges in images which can be performed using deep learning and a Python library, OpenCV. The holistically-Nested Edge detection was first introduced by Xie and Tu in 2015 and has since been widely used in computer-vision applications.Currently, it has gained a lot of popularity in recent years due to its ability to produce accurate and high-quality edge maps in an image. In this article, we will discuss the basics of HED, how it works, and how to implement it using OpenCV and deep learning, and also using Canny ... Read More

Histograms in Plotly using graph_objects class

Priya Mishra
Updated on 24-Jul-2023 19:04:12

280 Views

Histograms are the graphical representations of the dataset distribution and can be created using Plotly , a Python library with a class known as graph_objects, using which we can create the histogram. Histograms are useful for understanding the shape of the dataset which also includes outliers, central tendency, and spread. Plotly is a Python library that allows us to create interactive visualizations in various formats, including scatter plots, line charts, and histograms. The class graph_objects provides a high-level interface for creating some complex charts and allows us to customize every aspect of the plot. In this article, we will be ... Read More

How to Sort a Pandas DataFrame based on column names or row index?

Tapas Kumar Ghosh
Updated on 17-Jul-2023 15:59:00

2K+ Views

Many applications benefit from sorting pandas DataFrame by column names or row indexes. For example, to show how sales continue over time, we may sort a DataFrame of sales data by date. In Python, we have some built-in functions- DataFrame(), sort_index(), and, sort_values() that can be used to Sort a Pandas DataFrame based on column names or row index. Syntax The following syntax is used in the examples − DataFrame(var_name, colums= ['col1', 'col2', and so on], index= ['1', '2', and so on]) A DataFrame is a library of pandas modules and defines the 2D structure of different rows and ... Read More

Advertisements