Skip to content

Commit 26e526d

Browse files
committed
DOC fix incorrect docstring in logistic_regression_path
1 parent 2f18f83 commit 26e526d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sklearn/linear_model/logistic.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,8 @@ def logistic_regression_path(X, y, pos_class=None, Cs=10, fit_intercept=True,
543543
Multiclass option can be either 'ovr' or 'multinomial'. If the option
544544
chosen is 'ovr', then a binary problem is fit for each label. Else
545545
the loss minimised is the multinomial loss fit across
546-
the entire probability distribution. Works only for the 'lbfgs' and
547-
'newton-cg' solvers.
546+
the entire probability distribution. Does not work for 'liblinear'
547+
solver.
548548
549549
random_state : int, RandomState instance or None, optional, default None
550550
The seed of the pseudo random number generator to use when shuffling
@@ -864,8 +864,8 @@ def _log_reg_scoring_path(X, y, train, test, pos_class=None, Cs=10,
864864
Multiclass option can be either 'ovr' or 'multinomial'. If the option
865865
chosen is 'ovr', then a binary problem is fit for each label. Else
866866
the loss minimised is the multinomial loss fit across
867-
the entire probability distribution. Does not work for
868-
liblinear solver.
867+
the entire probability distribution. Does not work for 'liblinear'
868+
solver.
869869
870870
random_state : int, RandomState instance or None, optional, default None
871871
The seed of the pseudo random number generator to use when shuffling
@@ -1071,7 +1071,7 @@ class LogisticRegression(BaseEstimator, LinearClassifierMixin,
10711071
Multiclass option can be either 'ovr' or 'multinomial'. If the option
10721072
chosen is 'ovr', then a binary problem is fit for each label. Else
10731073
the loss minimised is the multinomial loss fit across
1074-
the entire probability distribution. Does not work for liblinear
1074+
the entire probability distribution. Does not work for 'liblinear'
10751075
solver.
10761076
10771077
.. versionadded:: 0.18
@@ -1500,8 +1500,8 @@ class LogisticRegressionCV(LogisticRegression, BaseEstimator,
15001500
Multiclass option can be either 'ovr' or 'multinomial'. If the option
15011501
chosen is 'ovr', then a binary problem is fit for each label. Else
15021502
the loss minimised is the multinomial loss fit across
1503-
the entire probability distribution. Works only for the 'newton-cg',
1504-
'sag', 'saga' and 'lbfgs' solver.
1503+
the entire probability distribution. Does not work for 'liblinear'
1504+
solver.
15051505
15061506
.. versionadded:: 0.18
15071507
Stochastic Average Gradient descent solver for 'multinomial' case.

0 commit comments

Comments
 (0)