Linear Models with scikit-learn

This chapter contains the following recipes:

  • Fitting a line through data
  • Fitting a line through data with machine learning
  • Evaluating the linear regression model
  • Using ridge regression to overcome linear regression's shortfalls
  • Optimizing the ridge regression parameter
  • Using sparsity to regularize models
  • Taking a more fundamental approach to regularization with LARS

Get scikit-learn Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.