Closed schliffen closed 8 months ago
It seems that only takes integers and the answer is also is integer.
You can pass in float/non-integer values using proper parameter space definition.
Your current definition only defines integer (param_space = dict(x=range(-10,10)))
Take a look at other parameter spaces shown in the readme like:
from scipy.stats import uniform
# uniformly distributed between -10 and 10
param_space = dict(a=uniform(-10, 20))
I tried the following objective function:
and it returned the wrong answer x=1 and objective value = 1.
code: