8000 Remove redefinition of k_fold in model_selection.rst (#8330) · scikit-learn/scikit-learn@c6b2002 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6b2002

Browse files
asishmlesteve
authored andcommitted
Remove redefinition of k_fold in model_selection.rst (#8330)
1 parent dc6279c commit c6b2002

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

doc/tutorial/statistical_inference/model_selection.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ This example shows an example usage 653C of the ``split`` method.
7070

7171
The cross-validation can then be performed easily::
7272

73-
>>> kfold = KFold(n_splits=3)
7473
>>> [svc.fit(X_digits[train], y_digits[train]).score(X_digits[test], y_digits[test])
7574
... for train, test in k_fold.split(X_digits)]
7675
[0.93489148580968284, 0.95659432387312182, 0.93989983305509184]

0 commit comments

Comments
 (0)
0