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

Skip to content

Commit 00c2f41

Browse files
adrinjalalijnothman
authored andcommitted
DOC fix logistic regression.fit docstring on y (#12343)
1 parent a80bbd9 commit 00c2f41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/linear_model/logistic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ def fit(self, X, y, sample_weight=None):
12491249
Training vector, where n_samples is the number of samples and
12501250
n_features is the number of features.
12511251
1252-
y : array-like, shape (n_samples,) or (n_samples, n_targets)
1252+
y : array-like, shape (n_samples,)
12531253
Target vector relative to X.
12541254
12551255
sample_weight : array-like, shape (n_samples,) optional
@@ -1688,7 +1688,7 @@ def fit(self, X, y, sample_weight=None):
16881688
Training vector, where n_samples is the number of samples and
16891689
n_features is the number of features.
16901690
1691-
y : array-like, shape (n_samples,) or (n_samples, n_targets)
1691+
y : array-like, shape (n_samples,)
16921692
Target vector relative to X.
16931693
16941694
sample_weight : array-like, shape (n_samples,) optional

0 commit comments

Comments
 (0)