oldoc63 / learningDS

Learning DS with Codecademy and Books
0 stars 0 forks source link

Simple Linear Regression #499

Open oldoc63 opened 1 year ago

oldoc63 commented 1 year ago

Let's start with linear regression, the most commonly used supervised machine learning algorithm. In this module, you'll learn how to:

Fit a line to data
Measure loss with residuals and sum of squares
Use scikit-learn to fit a linear regression
Evaluate a linear regression using R2 and train-test splits 

For this exercise, open a new Jupyter Notebook to practice in a new browser window. Or, if you'd like to work directly within the exercise notebook, you can download it below. After this lesson, we'll test your knowledge with a quiz.

Residuals

oldoc63 commented 1 year ago

Sum of Squares

oldoc63 commented 1 year ago

Exercise