maxpumperla / hyperas

Keras + Hyperopt: A very simple wrapper for convenient hyperparameter optimization
http://maxpumperla.com/hyperas/
MIT License
2.18k stars 318 forks source link

modify line 139 in optim.py #290

Closed bessembhiri closed 1 year ago

bessembhiri commented 2 years ago

i just changed the line #rstate=np.random.RandomState(rseed),

by rstate=np.random.default_rng(rseed), to allow compatibility with hyperopt==0.2.7

phenomax commented 2 years ago

+1: This patch got it working for me with hyperopt==0.2.7

embengnoob commented 1 year ago

confirming that this patch worked for me too: hyperopt==0.2.7, won't compile otherwise