Closed btyukodi closed 1 year ago
Hi @btyukodi the uniform
distribution's second parameter is the scale or the range of the distribution. So to have a uniform distribution between -10 and -1 you need to use uniform(-10, -9)
. From the scipy docs:
A uniform continuous random variable.
In the standard form, the distribution is uniform on [0, 1]. Using the parameters loc and scale, one obtains the uniform distribution on [loc, loc + scale].
Thanks, Mohit, for looking into this. I am closing the issue for now. Maybe, we can update the readme if you think it will better clarify the domain definition using distributions.
I'm trying to find the minimum of
x*x+5*x
. I'm using the code below:However, I'm getting the following error:
Interestingly, there is no error if I set
param_space = dict(x=uniform(-10, 0))
so I'm guessing there is an issue with both limits of the search space being negative. Is this the intended behavior? If so, why? Thank you!