Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion maint_tools/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
"LinearSVR",
"LocalOutlierFactor",
"LocallyLinearEmbedding",
"LogisticRegressionCV",
"MDS",
"MLPClassifier",
"MLPRegressor",
Expand Down
15 changes: 7 additions & 8 deletions sklearn/linear_model/_logistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -1950,11 +1955,6 @@ class LogisticRegressionCV(LogisticRegression, LinearClassifierMixin, BaseEstima
(2, 3)
>>> clf.score(X, y)
0.98...

See Also
--------
LogisticRegression

"""

def __init__(
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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
----------
Expand All @@ -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)
Expand Down