Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
c25614a
1
Parent(s):
0952ef0
Fix random state in hyperopt
Browse files
benchmarks/hyperparamopt.py
CHANGED
@@ -318,7 +318,7 @@ while True:
|
|
318 |
max_evals=n + len(trials.trials),
|
319 |
trials=trials,
|
320 |
verbose=1,
|
321 |
-
rstate=np.random.
|
322 |
)
|
323 |
except hyperopt.exceptions.AllTrialsFailed:
|
324 |
continue
|
|
|
318 |
max_evals=n + len(trials.trials),
|
319 |
trials=trials,
|
320 |
verbose=1,
|
321 |
+
rstate=np.random.RandomState(np.random.randint(1, 10**6)),
|
322 |
)
|
323 |
except hyperopt.exceptions.AllTrialsFailed:
|
324 |
continue
|