Search⌘ K
AI Features

- Linear Regression

Explore how to use linear regression with scikit-learn to predict home prices from the Boston housing dataset. Understand data splitting, model fitting, and error calculation to create simple predictive models ready for scaling in cloud environments.

We'll cover the following...

Regression is a common task for supervised learning, such as predicting the value of a home, and linear regression is a useful algorithm for making predictions for these types of problems.

scikit-learn provides both linear and logistic regression models for making predictions. We’ll start by using the LinearRegression class in scikit-learn to predict home prices for the Boston housing dataset.

Linear regression example

The ...