Skip to content

[MRG] DOC update Ridge doc for sparse + fit_intercept #13530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sklearn/linear_model/ridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ def ridge_regression(X, y, alpha, sample_weight=None, solver='auto',


All last five solvers support both dense and sparse data. However, only
'sag' and 'saga' supports sparse input when`fit_intercept` is True.
'sag' and 'sparse_cg' supports sparse input when`fit_intercept` is
True.

.. versionadded:: 0.17
Stochastic Average Gradient descent solver.
Expand Down Expand Up @@ -651,8 +652,8 @@ class Ridge(_BaseRidge, RegressorMixin):
approximately the same scale. You can preprocess the data with a
scaler from sklearn.preprocessing.

All last five solvers support both dense and sparse data. However,
only 'sag' and 'saga' supports sparse input when `fit_intercept` is
All last five solvers support both dense and sparse data. However, only
'sag' and 'sparse_cg' supports sparse input when `fit_intercept` is
True.

.. versionadded:: 0.17
Expand Down