8000 Change the order of test_score and train_score in the _fit_and_score … · scikit-learn/scikit-learn@1efb594 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1efb594

Browse files
committed
Change the order of test_score and train_score in the _fit_and_score docstring to reflect what the code actually does
1 parent 48e2b13 commit 1efb594

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