Skip to content

Commit 9954544

Browse files
committed
remove redundant return_train_score=False in cross_val_score
1 parent 2042ded commit 9954544

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sklearn/model_selection/_validation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ def cross_val_score(estimator, X, y=None, groups=None, scoring=None, cv='warn',
380380

381381
cv_results = cross_validate(estimator=estimator, X=X, y=y, groups=groups,
382382
scoring={'score': scorer}, cv=cv,
383-
return_train_score=False,
384383
n_jobs=n_jobs, verbose=verbose,
385384
fit_params=fit_params,
386385
pre_dispatch=pre_dispatch,

0 commit comments

Comments
 (0)