Which scikit-learn class implements linear regression?

Select the correct answer: Single Choice

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?