Which scikit-learn class implements linear regression?

Data Science with Python Easy

Data Science with Python — Easy

Which scikit-learn class implements linear regression?

Key points

  • LinearRegression class in scikit-learn implements linear regression
  • LogisticRegression is used for classification, not regression
  • OLS is not a valid scikit-learn module
  • stats.LinearModel is not a part of scikit-learn

Ready to go further?

Related questions