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

Why Python is the Best Data Science Language (in 2023)

An image suggesting that Python is the best data science language.

The first question that aspiring data scientists ask me is “what is the best data science language … which should I learn.” And almost always, this is framed as a decision between R and Python. If you’re wondering which language you should learn first … And especially if you’re interested in artificial intelligence. Then keep … 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

How to Use the Sklearn Predict Method

In this tutorial, I’ll show you how to use the Sklearn predict method to predict outputs using a machine learning model in Python. So I’ll quickly review what the method does, I’ll explain the syntax, and I’ll show a example of how to use the technique. If you need something specific, just click on the … 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 $127,000 in early 2021. If you already know some Python, then upskilling to add machine learning to your skill set could increase your earning power a lot. The … Read more