wujian16 / Cornell-MOE

A Python library for the state-of-the-art Bayesian optimization algorithms, with the core implemented in C++.
Other
261 stars 64 forks source link

Fix for Branin example #72

Closed octurion closed 5 years ago

octurion commented 5 years ago

Running python main.py Branin KG 4 1 crashes with the following error:

TypeError: No registered converter was able to produce a C++ rvalue of type double from this Python object of type numpy.int64

This pull request fixes this issue (albeit in a hackish way).

Bug #63 seems to be related to this (although this pull request may not fix it).