Skip to content

Commit 6920295

Browse files
committed
ENH set the random state to avoid heisenfailures
1 parent a3b55f4 commit 6920295

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/tests/test_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,8 @@ def test_estimators_overwrite_params():
768768
# So we impose a smaller number (avoid "auto" mode)
769769
est = Est(n_components=1)
770770

771+
set_random_state(est)
772+
771773
params = est.get_params()
772774
est.fit(X, y)
773775
new_params = est.get_params()

0 commit comments

Comments
 (0)