MilesCranmer commited on
Commit
c25614a
1 Parent(s): 0952ef0

Fix random state in hyperopt

Browse files
Files changed (1) hide show
  1. benchmarks/hyperparamopt.py +1 -1
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.default_rng(np.random.randint(1, 10**6)),
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