AIworx-Labs / chocolate

A fully decentralized hyperparameter optimization framework
http://chocolate.readthedocs.io
BSD 3-Clause "New" or "Revised" License
121 stars 41 forks source link

Expected Improvement fails #12

Closed knuds closed 7 years ago

knuds commented 7 years ago

when I call Bayes with utility_function='ei' I get :

File "/home/khs/.local/lib/python2.7/site-packages/scipy/optimize/optimize.py", line 292, in function_wrapper return function(*(wrapper_args + args)) File "/home/khs/.local/lib/python2.7/site-packages/chocolate/search/bayes.py", line 102, in res = minimize(lambda x: -self.utility(x.reshape(1, -1), gp=gp, y_max=y_max, kappa=self.kappa), AttributeError: 'Bayes' object has no attribute 'kappa'

fmder commented 7 years ago

It seems that when selecting "ei", kapa is not registered. I'll fix that.

fmder commented 7 years ago

6a0531d fixes the issue