Skip to content

Commit 1a8b797

Browse files
committed
DOC correct class_weight description for LogisticRegression
1 parent 6713132 commit 1a8b797

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sklearn/linear_model/logistic.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,10 @@ class LogisticRegression(BaseLibLinear, LinearClassifierMixin,
4848
(and therefore on the intercept) intercept_scaling has to be increased
4949
5050
class_weight : {dict, 'auto'}, optional
51-
Set the parameter C of class i to class_weight[i]*C for
52-
SVC. If not given, all classes are supposed to have
53-
weight one. The 'auto' mode uses the values of y to
54-
automatically adjust weights inversely proportional to
55-
class frequencies.
51+
Over-/undersamples the samples of each class according to the given
52+
weights. If not given, all classes are supposed to have weight one.
53+
The 'auto' mode selects weights inversely proportional to class
54+
frequencies in the training set.
5655
5756
tol: float, optional
5857
Tolerance for stopping criteria.

0 commit comments

Comments
 (0)