...

/

Exercise: Linear Regression in scikit-learn

Exercise: Linear Regression in scikit-learn

Learn how to implement linear regression in scikit-learn using synthetic data.

Linear regression with scikit-learn

In this exercise, we will take the synthetic data we just generated and determine a line of best fit, or linear regression, using scikit-learn. The first step is to import a linear regression model class from scikit-learn and create an object from it. The import is similar to the LogisticRegression class we worked with previously. As with any ...

Access this course and 1400+ top-rated courses and projects.