8000 TST Specify random_state in test_cv_iterable_wrapper (#15829) · scikit-learn/scikit-learn@6c58288 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c58288

Browse files
TST Specify random_state in test_cv_iterable_wrapper (#15829)
1 parent c7fccc6 commit 6c58288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/model_selection/tests/test_split.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ def test_cv_iterable_wrapper():
13381338
list(kf_iter_wrapped.split(X, y)))
13391339
# If the splits are randomized, successive calls to split yields different
13401340
# results
1341-
kf_randomized_iter = KFold(shuffle=True).split(X, y)
1341+
kf_randomized_iter = KFold(shuffle=True, random_state=0).split(X, y)
13421342
kf_randomized_iter_wrapped = check_cv(kf_randomized_iter)
13431343
# numpy's assert_array_equal properly compares nested lists
13441344
np.testing.assert_equal(list(kf_randomized_iter_wrapped.split(X, y)),

0 commit comments

Comments
 (0)
0