diff --git a/maint_tools/test_docstrings.py b/maint_tools/test_docstrings.py index 7c46373ba0541..da6864fb8bab9 100644 --- a/maint_tools/test_docstrings.py +++ b/maint_tools/test_docstrings.py @@ -100,7 +100,6 @@ "LinearSVR", "LocalOutlierFactor", "LocallyLinearEmbedding", - "LogisticRegressionCV", "MDS", "MLPClassifier", "MLPRegressor", diff --git a/sklearn/linear_model/_logistic.py b/sklearn/linear_model/_logistic.py index b34904d686cec..ee6087f79bae9 100644 --- a/sklearn/linear_model/_logistic.py +++ b/sklearn/linear_model/_logistic.py @@ -1938,6 +1938,11 @@ class LogisticRegressionCV(LogisticRegression, LinearClassifierMixin, BaseEstima .. versionadded:: 0.24 + See Also + -------- + LogisticRegression : Logistic regression without tuning the + hyperparameter `C`. + Examples -------- >>> from sklearn.datasets import load_iris @@ -1950,11 +1955,6 @@ class LogisticRegressionCV(LogisticRegression, LinearClassifierMixin, BaseEstima (2, 3) >>> clf.score(X, y) 0.98... - - See Also - -------- - LogisticRegression - """ def __init__( @@ -2015,6 +2015,7 @@ def fit(self, X, y, sample_weight=None): Returns ------- self : object + Fitted LogisticRegressionCV estimator. """ solver = _check_solver(self.solver, self.penalty, self.dual) @@ -2346,8 +2347,7 @@ def fit(self, X, y, sample_weight=None): return self def score(self, X, y, sample_weight=None): - """Returns the score using the `scoring` option on the given - test data and labels. + """Score using the `scoring` option on the given test data and labels. Parameters ---------- @@ -2364,7 +2364,6 @@ def score(self, X, y, sample_weight=None): ------- score : float Score of self.predict(X) wrt. y. - """ scoring = self.scoring or "accuracy" scoring = get_scorer(scoring)