Skip to content

Commit 9dc4f7b

Browse files
DOC fix typo and inconsistencies in RidgeClassifier docstrings (scikit-learn#34402)
Co-authored-by: Tim Head <betatim@gmail.com>
1 parent d1f1734 commit 9dc4f7b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sklearn/linear_model/_ridge.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ def predict(self, X):
13521352
13531353
Parameters
13541354
----------
1355-
X : {array-like, spare matrix} of shape (n_samples, n_features)
1355+
X : {array-like, sparse matrix} of shape (n_samples, n_features)
13561356
The data matrix for which we want to predict the targets.
13571357
13581358
Returns
@@ -1461,16 +1461,16 @@ class RidgeClassifier(_RidgeClassifierMixin, _BaseRidge):
14611461
coefficients. It is the most stable solver, in particular more stable
14621462
for singular matrices than 'cholesky' at the cost of being slower.
14631463
1464-
- 'cholesky' uses the standard scipy.linalg.solve function to
1464+
- 'cholesky' uses the standard :func:`scipy.linalg.solve` function to
14651465
obtain a closed-form solution.
14661466
14671467
- 'sparse_cg' uses the conjugate gradient solver as found in
1468-
scipy.sparse.linalg.cg. As an iterative algorithm, this solver is
1468+
:func:`scipy.sparse.linalg.cg`. As an iterative algorithm, this solver is
14691469
more appropriate than 'cholesky' for large-scale data
14701470
(possibility to set `tol` and `max_iter`).
14711471
14721472
- 'lsqr' uses the dedicated regularized least-squares routine
1473-
scipy.sparse.linalg.lsqr. It is the fastest and uses an iterative
1473+
:func:`scipy.sparse.linalg.lsqr`. It is the fastest and uses an iterative
14741474
procedure.
14751475
14761476
- 'sag' uses a Stochastic Average Gradient descent, and 'saga' uses
@@ -1536,7 +1536,7 @@ class RidgeClassifier(_RidgeClassifierMixin, _BaseRidge):
15361536
See Also
15371537
--------
15381538
Ridge : Ridge regression.
1539-
RidgeClassifierCV : Ridge classifier with built-in cross validation.
1539+
RidgeClassifierCV : Ridge classifier with built-in cross validation.
15401540
15411541
Notes
15421542
-----

0 commit comments

Comments
 (0)