Skip to content

Commit ba922d1

Browse files
committed
BUG: fix doctests
1 parent 3ab286a commit ba922d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/cross_validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ class KFold(_BaseKFold):
290290
>>> kf = cross_validation.KFold(4, n_folds=2)
291291
>>> len(kf)
292292
2
293-
>>> print(kf)
293+
>>> print(kf) # doctest: +NORMALIZE_WHITESPACE
294294
sklearn.cross_validation.KFold(n=4, n_folds=2, shuffle=False,
295295
random_state=None)
296296
>>> for train_index, test_index in kf:
@@ -378,7 +378,7 @@ class StratifiedKFold(_BaseKFold):
378378
>>> skf = cross_validation.StratifiedKFold(y, n_folds=2)
379379
>>> len(skf)
380380
2
381-
>>> print(skf)
381+
>>> print(skf) # doctest: +NORMALIZE_WHITESPACE
382382
sklearn.cross_validation.StratifiedKFold(labels=[0 0 1 1], n_folds=2,
383383
shuffle=False, random_state=None)
384384
>>> for train_index, test_index in skf:

0 commit comments

Comments
 (0)