Gaurav Leekha has Published 131 Articles

Complete Guide to Python StringIO Module with Examples

Gaurav Leekha

Gaurav Leekha

Updated on 21-Aug-2023 17:44:26

583 Views

Sometimes we need data to be created or read in memory instead of actual files seen by the OS. This is where the Python StringIO module, an in-memory file-like object, comes into play. Read through this article to get a detailed explanation about the Python StringIO module. What is Python ... Read More

Check Multiple Conditions in IF statement using Python

Gaurav Leekha

Gaurav Leekha

Updated on 21-Aug-2023 17:42:17

7K+ Views

When writing programs, it is often necessary to check multiple conditions in order to determine the appropriate course of action. In Python, the "if" statement is used to execute a block of code if a specific condition is true. However, in many cases, we need to check more than one ... Read More

A Beginner’s Guide to Image Classification using CNN (Python implementation)

Gaurav Leekha

Gaurav Leekha

Updated on 21-Aug-2023 17:40:30

680 Views

Convolutional Neural Networks (CNNs) are a type of neural network that is specifically designed to process data with a grid-like topology, such as an image. CNNs are composed of a number of convolutional and pooling layers, which are designed to extract features from the input data, and a fully connected ... Read More

7 Easy Steps to Build a Machine Learning Classifier with Codes in Python

Gaurav Leekha

Gaurav Leekha

Updated on 21-Aug-2023 17:38:39

174 Views

Machine Learning (ML), a branch of Artificial Intelligence (AI), is more than a buzzword right now. It is continuously growing and set to be the most transformative technology existing over the next decade. A few applications of machine learning that have already started having an impact on society include self-driving ... Read More

5 Simple Ways to Perform Tokenization in Python

Gaurav Leekha

Gaurav Leekha

Updated on 21-Aug-2023 17:37:03

1K+ Views

Tokenization is the process of splitting a string into tokens, or "smaller pieces". In the context of natural language processing (NLP), tokens are usually words, punctuation marks, and numbers. Tokenization is an important preprocessing step for many NLP tasks, as it allows you to work with individual words and symbols ... Read More

Printing a list to a Tkinter Text widget

Gaurav Leekha

Gaurav Leekha

Updated on 13-Apr-2023 17:44:55

7K+ Views

When creating a graphical user interface (GUI) in Python with Tkinter, it's common to want to display data in a user-friendly format. One way to do this is to print a list of items to a Tkinter Text widget, which allows you to display the list with each item on ... Read More

How to implement linear classification with Python Scikit-learn?

Gaurav Leekha

Gaurav Leekha

Updated on 04-Oct-2022 08:40:49

3K+ Views

Linear classification is one of the simplest machine learning problems. To implement linear classification, we will be using sklearn’s SGD (Stochastic Gradient Descent) classifier to predict the Iris flower species. Steps You can follow the below given steps to implement linear classification with Python Scikit-learn − Step 1 − First ... Read More

How to transform Scikit-learn IRIS dataset to 2-feature dataset in Python?

Gaurav Leekha

Gaurav Leekha

Updated on 04-Oct-2022 08:38:18

521 Views

Iris, a multivariate flower dataset, is one of the most useful Pyhton scikit-learn datasets. It has 3 classes of 50 instances each and contains the measurements of the sepal and petal parts of three Iris species namely Iris setosa, Iris virginica, and Iris versicolor. Along with that Iris dataset contains ... Read More

How to transform Sklearn DIGITS dataset to 2 and 3-feature dataset in Python?

Gaurav Leekha

Gaurav Leekha

Updated on 04-Oct-2022 08:35:06

458 Views

Sklearn DIGITS dataset has 64 features as each image of the digit is of size 8 by 8 pixels. We can use Principal Component Analysis (PCA) to transform Scikit-learn DIGITS dataset into new feature space with 2 features. Transforming 64 features dataset to 2-feature dataset will be a big reduction ... Read More

How to perform dimensionality reduction using Python Scikit-learn?

Gaurav Leekha

Gaurav Leekha

Updated on 04-Oct-2022 08:32:09

727 Views

Dimensionality reduction, an unsupervised machine learning method is used to reduce the number of feature variables for each data sample selecting set of principal features. Principal Component Analysis (PCA) is one of the popular algorithms for dimensionality reduction available in Sklearn. In this tutorial, we perform dimensionality reduction using principal ... Read More

Advertisements