Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example f_min.py DIRECT error #75

Closed
Schraivogel opened this issue Sep 6, 2017 · 2 comments
Closed

example f_min.py DIRECT error #75

Schraivogel opened this issue Sep 6, 2017 · 2 comments

Comments

@Schraivogel
Copy link

Schraivogel commented Sep 6, 2017

Hi,
seems like i have a similar problem with the DIRECT library. Running RoBO on a virtual x64 ubuntu machine using python3.4 within a venv. Any ideas what I can do? example_blr.py runs...
...
INFO:robo.solver.bayesian_optimization:Maximize acquisition function...
Call-back cb_fcn_in_direct__user__routines failed.
Traceback (most recent call last):
File "example_fmin.py", line 22, in
results = bayesian_optimization(objective_function, lower, upper, num_iterations=50)
File "/home/student/Documents/venv/RoBo/lib/python3.4/site-packages/RoBO-0.2.1-py3.4.egg/robo/fmin/bayesian_optimization.py", line 133, in bayesian_optimization
File "/home/student/Documents/venv/RoBo/lib/python3.4/site-packages/RoBO-0.2.1-py3.4.egg/robo/solver/bayesian_optimization.py", line 167, in run
File "/home/student/Documents/venv/RoBo/lib/python3.4/site-packages/RoBO-0.2.1-py3.4.egg/robo/solver/bayesian_optimization.py", line 245, in choose_next
File "/home/student/Documents/venv/RoBo/lib/python3.4/site-packages/RoBO-0.2.1-py3.4.egg/robo/maximizers/direct.py", line 69, in maximize
File "/home/student/Documents/venv/RoBo/lib/python3.4/site-packages/DIRECT/init.py", line 202, in solve
cdata
ValueError: data type must provide an itemsize

Thanks,
Stephan

@aaronkl
Copy link
Contributor

aaronkl commented Sep 8, 2017

Hi, the problem is that by default we suppress DIRECTs output to unclutter RoBOs console output. It seems that this leads to problems on some OS systems. I changed RoBOs default verbosity level such that it prints DIRECTs output. Could you pull the master branch and try it again?

@Schraivogel
Copy link
Author

Hi,
thanks for the tip. It didn't resolve the error though... Must be an issue on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants