Skip to Content
Practical Data Science with Python
book

Practical Data Science with Python

by Nathan George
September 2021
Beginner to intermediate
620 pages
15h 30m
English
Packt Publishing
Content preview from Practical Data Science with Python

13

Machine Learning with Regression

In situations where we want to predict continuous values, such as temperature, housing prices, or salary, we can use regression models. These are another type of supervised learning besides the classification that we learned about in the last chapter. In this chapter, we'll cover some of the basics around regression models, including:

  • Linear regression using sklearn and statsmodels
  • Regularization with linear regression
  • KNN and other sklearn models for regression
  • Evaluating regression model performance

Let's get started by learning how linear regression works.

Linear regression

Linear regression has been around since the 1800s but is still used today. It is an easy-to-use and -interpret method that generally ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Science Projects with Python - Second Edition

Data Science Projects with Python - Second Edition

Stephen Klosterman
Python: End-to-end Data Analysis

Python: End-to-end Data Analysis

Phuong Vothihong, Martin Czygan, Ivan Idris, Magnus Vilhelm Persson, Luiz Felipe Martins

Publisher Resources

ISBN: 9781801071970Supplemental Content