This repository was archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 552
Surprising values returned by gp_minimize from categories #821
Comments
Corrected the title as I might be breaking the abstraction here. If |
Hehe, I take it back, from what I'm seeing in the Here's a clearer example: import skopt
def f(params):
print(params)
return 0
dims = [[1]]
res = skopt.gp_minimize(
f,
dims,
n_calls=1,
n_random_starts=1,
) Output is always |
gar1t
pushed a commit
to guildai/guildai
that referenced
this issue
Jan 31, 2020
See scikit-optimize/scikit-optimize#821 - this breaks categories as all values are converted by skopt to strings.
The problem is that there is not an inverse_transform performed when the function f is called.
There seems to me a problem with a missing inverse_transform |
holgern
added a commit
that referenced
this issue
Jan 31, 2020
[MRG] Fix categorical space (issue #821)
Will be fixed in 0.7.1 |
6F8A
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
7720fda is an ostensible fix for #752 but the results from
gp_minimize
now return invalid category values.Sample to recreate:
Output:
Note that the suggested value is a string value, which is not one of the category values.
The transform to strings is predicated on the ability to reverse transform the values, but this isn't happening here.
The text was updated successfully, but these errors were encountered: