Reader small image

You're reading from  Machine Learning with Python

Product typeBook
Published inMar 2024
PublisherPackt
ISBN-139781835461969
Edition1st Edition
Right arrow
Author (1)
Oliver Theobald
Oliver Theobald
author image
Oliver Theobald

Oliver Theobald, a technical writer and best-selling author, excels in AI, fintech, and cloud computing. With global experience, he now resides between China and Japan, deepening his expertise in technology. As an instructor, Oliver emphasizes clarity and engagement, stripping away jargon to make complex topics accessible. His courses aim to empower both beginners and professionals with practical skills for success in the tech industry, making learning both effective and enjoyable.
Read more about Oliver Theobald

Right arrow

LINEAR REGRESSION

 

This chapter describes the code for building a supervised learning model to predict a numerical target variable using linear regression.

Linear regression, as you may know, plots a straight line or plane called the hyperplane that predicts the target value of data inputs by determining the dependence between the dependent variable (y) and its changing independent variables (X). In a p-dimensional space, a hyperplane is a subspace equivalent to dimension p1. Thus, in a two-dimensional space, a hyperplane is a one-dimensional subspace/flat line. In a three-dimensional space, a hyperplane is effectively a two-dimensional subspace. Although it becomes difficult to visualize a hyperplane in four or more dimensions, the notion of a p1 hyperplane also applies.

 

Image

Figure 24: The distance of the data points to the hyperplane

 

The goal of the hyperplane is to dissect the known data points with minimal distance between itself and each data...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Machine Learning with Python
Published in: Mar 2024Publisher: PacktISBN-13: 9781835461969
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Oliver Theobald

Oliver Theobald, a technical writer and best-selling author, excels in AI, fintech, and cloud computing. With global experience, he now resides between China and Japan, deepening his expertise in technology. As an instructor, Oliver emphasizes clarity and engagement, stripping away jargon to make complex topics accessible. His courses aim to empower both beginners and professionals with practical skills for success in the tech industry, making learning both effective and enjoyable.
Read more about Oliver Theobald