Sklearn confusion_matrix, Explained

An image of a confusion matrix, similar to the type of confusion matrix that we would make with Sklearn confusion_matrix.

Scikit-learn, which is affectionately known as sklearn among Python data scientists, is a Python library that offers a wide range of machine learning tools. Among these tools is the confusion_matrix function, which is indispensable when working on classification problems. So in this tutorial, I’ll show you how to use the sklearn confusion_matrix function. I’ll give … Read more

The 5 Python Skills You Need Before You Study Machine Learning

And image showing the 5 Python skills you need before you study machine learning.

Machine learning is a very powerful skill. And machine learning is a valuable skill. According to Glassdoor, the average salary for a machine learning engineer is about $140,000 in 2023. Mastering machine learning could increase your earning power a lot. The question is, how? What’s the best way to get started with machine learning? What … Read more

How to Use the Sklearn Logistic Regression Function

An image of a logistic regression model made with Scikit-learn, also showing a piece of Scikit-learn code.

In this tutorial, I’ll show you how to use the Sklearn Logistic Regression function to create logistic regression models in Python. I’ll quickly review what logistic regression is, explain the syntax of Sklearn LogisticRegression, and I’ll show you a step-by-step example of how to use the technique. If you need something specific, just click on … Read more

Sklearn make_classification, Explained

An image of code that uses Scikit-learn make_classification to create a binary classification dataset, and an image of a scatterplot that plots the resulting binary data.

With the rise of AI, machine learning has suddenly become very popular. Machine learning has been around for decades, but machine learning systems are becoming increasingly important in a range of fields, from healthcare, to finance, to marketing. Python, with a range of libraries for data science and ML, has arguably become the top language … Read more

How to Use the Sklearn Linear Regression Function

A visual example of simple linear regression, where we fit a line to the training data, and then use that line as a model to predict new values.

In this tutorial, I’ll show you how to use the Sklearn Linear Regression function to create linear regression models in Python. I’ll quickly review what linear regression is, explain the syntax of Sklearn LinearRegression, and I’ll show you step-by-step examples of how to use the technique. If you need something specific, just click on any … Read more