8000 Merge pull request #3127 from rmcgibbo/_fit_and_score-docstring · scikit-learn/scikit-learn@29e9ed1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 29e9ed1

Browse files
committed
Merge pull request #3127 from rmcgibbo/_fit_and_score-docstring
[DOC] Make _fit_and_score return value docstring consistent with code.
2 parents 48e2b13 + 1efb594 commit 29e9ed1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/cross_validation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,12 +1159,12 @@ def _fit_and_score(estimator, X, y, scorer, train, test, verbose, parameters,
11591159
11601160
Returns
11611161
-------
1162+
train_score : float, optional
1163+
Score on training set, returned only if `return_train_score` is `True`.
1164+
11621165
test_score : float
11631166
Score on test set.
11641167
1165-
train_score : float, optional
1166-
Score on training set.
1167-
11681168
n_test_samples : int
11691169
Number of test samples.
11701170

0 commit comments

Comments
 (0)
0