You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
I am using skopt version 0.9.0 and numpy 1.23.5 (due to an error I got that is specified in #1138). I found, after downgrading numpy from 1.24.1, that I had made an error in specifying the ranges. They were ints instead of floats. however, my initial x-guess was a float. I made a minimal example below:
fromskoptimportgp_minimizedeffind_sqrt(x):
"""find square root of value y given a guess x"""y=12.5x=x[0]
y_guess=x**2returnabs(y_guess-y)
x0= [1.0]
y0=Noneres1=gp_minimize(
find_sqrt,
[
(0.0, 12.0),
],
n_calls=12,
x0=x0,
y0=y0,
)
print("guesses with proper float ranges: ", res1.x_iters)
res2=gp_minimize(
find_sqrt,
[
(0, 12),
],
n_calls=12,
x0=x0,
y0=y0,
)
print("guesses with improper int ranges: ", res2.x_iters)
If this is expected behavior and I missed something in the docs then I am fine with closing the issue, but I would think that there would be an error thrown if the first and second guesses are different datatypes for the same variable.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using skopt version 0.9.0 and numpy 1.23.5 (due to an error I got that is specified in #1138). I found, after downgrading numpy from 1.24.1, that I had made an error in specifying the ranges. They were ints instead of floats. however, my initial x-guess was a float. I made a minimal example below:
which outputs:
If this is expected behavior and I missed something in the docs then I am fine with closing the issue, but I would think that there would be an error thrown if the first and second guesses are different datatypes for the same variable.
The text was updated successfully, but these errors were encountered: