automl / RoBO

RoBO: a Robust Bayesian Optimization framework
BSD 3-Clause "New" or "Revised" License
483 stars 133 forks source link

__init__() got an unexpected keyword argument 'dim' #78

Closed kroscek closed 7 years ago

kroscek commented 7 years ago

I tried the example on the page: https://github.com/automl/RoBO/blob/master/examples/example_fabolas.py But then it generates error: Traceback (most recent call last):

File "", line 12, in s_min=s_min, s_max=s_max, num_iterations=100)

File "/home/lemma/miniconda2/envs/py36/lib/python3.6/site-packages/RoBO-0.2.1-py3.6.egg/robo/fmin/fabolas.py", line 106, in fabolas ndim=n_dims+1, dim=d)

TypeError: init() got an unexpected keyword argument 'dim'

Not sure what's going on here?

kroscek commented 7 years ago

Here trying the example: https://github.com/automl/RoBO/blob/master/examples/example_bohamiann.py Also gives an error:

INFO:root:Iter 12900 : NLL = 2.5185e+03 MSE = 7.7797e-02 Samples= 100 Time = 119.19 INFO:robo.solver.bayesian_optimization:Time to train the model: 119.193871 INFO:robo.solver.bayesian_optimization:Maximize acquisition function... Traceback (most recent call last):

File "", line 21, in results = bohamiann(objective_function, lower, upper, num_iterations=20)

File "/home/lemma/miniconda2/envs/py36/lib/python3.6/site-packages/RoBO-0.2.1-py3.6.egg/robo/fmin/bohamiann.py", line 85, in bohamiann x_best, f_min = bo.run(num_iterations)

File "/home/lemma/miniconda2/envs/py36/lib/python3.6/site-packages/RoBO-0.2.1-py3.6.egg/robo/solver/bayesian_optimization.py", line 167, in run new_x = self.choose_next(self.X, self.y, do_optimize)

File "/home/lemma/miniconda2/envs/py36/lib/python3.6/site-packages/RoBO-0.2.1-py3.6.egg/robo/solver/bayesian_optimization.py", line 245, in choose_next x = self.maximize_func.maximize()

File "/home/lemma/miniconda2/envs/py36/lib/python3.6/site-packages/RoBO-0.2.1-py3.6.egg/robo/maximizers/direct.py", line 58, in maximize maxf=self.n_func_evals)

File "/home/lemma/miniconda2/envs/py36/lib/python3.6/site-packages/DIRECT/init.py", line 202, in solve cdata

ValueError: data type must provide an itemsize

aaronkl commented 7 years ago

How did you install george? Did you make sure that you installed our fork of george

About the second problem, see #77

kroscek commented 7 years ago

Installing your fork solved the issue THX