-
Notifications
You must be signed in to change notification settings - Fork 261
numpy truth value error #96
Comments
@himat I got the same error, and it was because I was using numpy 1.13 Just downgrade your numpy version ;-) |
That's a great input. Thanks for commenting. Do you know exactly what is
failing when trying to use 1.13?That would help to update the code in that
direction as I guess that more people will have the same problem in the
future.
Javier
…On 13 June 2017 at 13:56, Alberto Rubio ***@***.***> wrote:
@himat <https://github.com/himat> I got the same error, and it was
because I was using numpy 1.13
It looks like GPyOpt does not get well with the new version of numpy.
Just downgrade your numpy version ;-)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#96 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGiS88iH6Gs-4_U6aNOUczspfIzOq06Bks5sDob5gaJpZM4NzY-n>
.
|
Hi, There are numerous places in the GPyOpt code where it tests for the presence of an array argument like this: With the new numpy his will cause the error described above for arrays, and I encountered the same error in acquisitions.LP (see below). The solution is to replace these tests with the following form: A similar fix applies to tests of the form " I hope this helps. It should be fairly simple to find and repair all occurrences. Most of the existing tests already have the correct form.
|
Hi,
in GPyOpt/core/bo.py line 209 It this way, the error may go. Simple test:
If you tried this method and it works, please let me know. I need to inform our IT team to update the package. |
Closing as this issue was fixed in the release 1.2.0. |
I followed the example on the gpyopt website, and immediately got an error.
The text was updated successfully, but these errors were encountered: