-
Notifications
You must be signed in to change notification settings - Fork 133
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
Datatype must provide an itemsize #77
Comments
There are some issues with DIRECT and python3.5. Could you try to run it with python 3.4 or python 3.6 to see if the error still occurs? |
Hi there,
Another interesting issue is that the above snippet says DIRECT version 2.0.4 but after doing an |
Hi, after some digging into it I think that anaconda has some issues with the compiled frotran code of Direct. Unfortunately, I haven't found a solution to fix it. We are right now reimplementing some parts of RoBO to get rid of all of these out-dated dependencies such as Direct or George. Sorry of any inconveniences. |
I use the CMAES and it shows that "The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()". |
@BrutishGuy The version shown by I experienced the same error and was able to solve it by using numpy in version 1.12.1. Additionally, i removed direct from the requirements files and compiled it on my own system with gfortran and against the old numpy. If you leave direct in the requirements file, RoBO tries to use the version downloaded with pip. For some reason that version is not working on my machine. |
By downgrading numpy to 1.12.1 as suggested by @BrutishGuy I was able to get things working on my desktop (macOS 10.13, Python 3.6). Unfortunately, on my particular test GPU configuration (AWS instance with the Amazon DL AMI), Tensorflow does not work unless I use the latest version of numpy, so I couldn't downgrade my numpy to 1.12.1. Instead, I tried to swap the pydirect package for scipydirect which is a new fork of pydirect. Note that scipydirect implements a minimizer as opposed to a maximizer and calls
and I can never find a better value of the objective function than the initial one. |
Anu update on this issue? Scipydirect is failing. Edit: Cheers! |
Hey,
I'm stuck with a problem using bayesian_optimization with the ''direct'' algorithm in python 3.5
The stacktrace yields:
I have checked the itemsize of iidata, ddata, cdata and the bounds, but all provide an itemsize.
Thank you, Paul
The text was updated successfully, but these errors were encountered: