© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
P. SinghMachine Learning with PySparkhttps://doi.org/10.1007/978-1-4842-7777-5_4

4. Linear Regression

Pramod Singh1  
(1)
Bangalore, Karnataka, India
 

As we talked about in the previous chapter, Machine Learning is a very vast field, and there are multiple algorithms that fall under various categories, but linear regression is one of the most fundamental Machine Learning algorithms. This chapter focuses on building a linear regression model with PySpark and dives deep into the workings of a LR model. It will cover various assumptions to be considered before using LR along with different evaluation metrics. But before even jumping into understanding linear regression, ...

Get Machine Learning with PySpark: With Natural Language Processing and Recommender Systems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.