Hussain Nasir Khan

A programmer, writer, and engineer. I have a deep interest in computer vision and artificial intelligence.

Convert string to date Python

Convert string to date Python

In this Python string tutorial, you will learn how to convert string to date in Python. Output: 2021-09-20 <class ‘datetime.date’> Free learning resources: AiHints, CodeAllow

Sklearn Logistic Regression Logistic Regression Python

Sklearn Logistic Regression | Logistic Regression Python

Logistic Regression is a supervised machine-learning algorithm. Logistic regression is used for classification problems. It predicts the probability of the target variable. We can quickly implement logistic regression in Python using the Sklearn library. You have to follow the given steps to implement the logistic regression. Step 1: Import the libraries Step 2: Import the …

Sklearn Logistic Regression | Logistic Regression Python Read More »

Sklearn Naive Bayes

Sklearn Naive Bayes | Naive Bayes classifier in Python

Naive Bayes classifiers are supervised machine learning algorithms. The Naive Bayes algorithms are based on Bayes’ theorem. We can quickly implement the Naive Bayes classifier in Python using the Sklearn library. You have to follow the given steps. Step 1: Import the libraries Step 2: Import the iris dataset sepal_length sepal_width petal_length petal_width species 0 …

Sklearn Naive Bayes | Naive Bayes classifier in Python Read More »

Sklearn KNN

Sklearn KNN | k-nearest neighbor classifier in Python

KNN (k-nearest neighbor) is a supervised machine learning algorithm. The KNN algorithm can be used for classification and regression. We can quickly implement KNN in Python using the Sklearn library. You have to follow the given steps. Step 1: Import the libraries Step 2: Import the iris dataset sepal_length sepal_width petal_length petal_width species 0 5.1 …

Sklearn KNN | k-nearest neighbor classifier in Python Read More »

Convert string to JSON Python

Convert string to JSON Python

In this Python string tutorial, you will learn how to convert string to JSON in Python. Output: {‘website’: ‘AiHints’, ‘articles’: 200} Free learning resources: AiHints, CodeAllow