Closed themasterlink closed 2 years ago
Hey,
I found a bug, which is easy to fix, the hyperopt backend does not use the deprecated np.random.RandomState anymore and replaced it with np.random.Generator, this means the following line:
np.random.RandomState
np.random.Generator
https://github.com/evhub/bbopt/blob/408e210e57b7a2aaf3cfd3a3c225fc2af6b3c56d/bbopt/backends/hyperopt.py#L176
Should be changed to:
def setup_backend(self, params, algo=tpe.suggest, rstate=np.random.default_rng(), show_progressbar=False, **options):
This is explained in the following issue on hyperopt:
https://github.com/hyperopt/hyperopt/issues/838
Best, Max
Thanks for the bug report! Should be fixed now in bbopt>=1.3.9.
bbopt>=1.3.9
Hey,
I found a bug, which is easy to fix, the hyperopt backend does not use the deprecated
np.random.RandomState
anymore and replaced it withnp.random.Generator
, this means the following line:https://github.com/evhub/bbopt/blob/408e210e57b7a2aaf3cfd3a3c225fc2af6b3c56d/bbopt/backends/hyperopt.py#L176
Should be changed to:
This is explained in the following issue on hyperopt:
https://github.com/hyperopt/hyperopt/issues/838
Best, Max