Skip to content

Commit 1befd65

Browse files
committed
ENH set the random state to avoid heisenfailures
1 parent 3ff1a15 commit 1befd65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/tests/test_common.py

+2
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,8 @@ def test_estimators_overwrite_params():
793793
# So we impose a smaller number (avoid "auto" mode)
794794
est = Est(n_components=1)
795795

796+
set_random_state(est)
797+
796798
params = est.get_params()
797799
est.fit(X, y)
798800
new_params = est.get_params()

0 commit comments

Comments
 (0)