Skip to content

Commit 5c49994

Browse files
authored
DOC Ensures that Ridge passes numpydoc validation (scikit-learn#20499)
1 parent 1fd45fb commit 5c49994

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

maint_tools/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"RandomTreesEmbedding",
129129
"RandomizedSearchCV",
130130
"RegressorChain",
131-
"Ridge",
132131
"RidgeCV",
133132
"RidgeClassifier",
134133
"RidgeClassifierCV",

sklearn/linear_model/_ridge.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -988,18 +988,19 @@ def fit(self, X, y, sample_weight=None):
988988
Parameters
989989
----------
990990
X : {ndarray, sparse matrix} of shape (n_samples, n_features)
991-
Training data
991+
Training data.
992992
993993
y : ndarray of shape (n_samples,) or (n_samples, n_targets)
994-
Target values
994+
Target values.
995995
996996
sample_weight : float or ndarray of shape (n_samples,), default=None
997997
Individual weights for each sample. If given a float, every sample
998998
will have the same weight.
999999
10001000
Returns
10011001
-------
1002-
self : returns an instance of self.
1002+
self : object
1003+
Fitted estimator.
10031004
"""
10041005
return super().fit(X, y, sample_weight=sample_weight)
10051006

0 commit comments

Comments
 (0)