⚡ Linear Regression with sklearn

These are Luis's notes on how to implement a linear regression model using the scikit-learn library. This demonstration will help you understand how scikit-learn simplifies the process of training, evaluating, and using linear regression models.

The interactive notebook includes:

  • Preparation and visualization of synthetic data.
  • Implementation of a linear regression model with scikit-learn.
  • Splitting the data into training and test sets.
  • Model training and evaluation.
  • Visualization of data and the regression line.
  • Example of prediction for new data.

Want to modify the code and experiment on your own?
Open the notebook in Google Colab

Bibliography