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 23, 2023. It is now read-only.
Hi,
I'm trying to obtain the next suggested point over a subspace of the original space: if X=[y, z], I need the next y with fixed z. And BO.suggest_next_locations(context=z) is the way to go.
My question is:
When I have multiple sets of z, like z_1, z_2, ..., and I will get y_1, y_2,...
To get the 'best' y_i over all the y, I need to know the acquisition value of each point [y_i, z_i]. How could I do that?
Or is there any other way to do this? Many thanks!
The text was updated successfully, but these errors were encountered:
Crudely, you could, instead of having z as a context variable, treat it like a normal parameter - then, at each step, change the parameter's domain to np.array([[z_1, z_2, ..]]). This should make [x,z] = BO.suggest_next_locations() give you the best z.
I should note that there is a way to do this using a context set as you propose, but you'll have to interact with the acquisition functions themselves, perhaps writing your own acquisition function. This isn't terribly hard, it's just more involved than the crude solution above.
Crudely, you could, instead of having z as a context variable, treat it like a normal parameter - then, at each step, change the parameter's domain to np.array([[z_1, z_2, ..]]). This should make [x,z] = BO.suggest_next_locations() give you the best z.
I should note that there is a way to do this using a context set as you propose, but you'll have to interact with the acquisition functions themselves, perhaps writing your own acquisition function. This isn't terribly hard, it's just more involved than the crude solution above.
Thanks for your solution. Maybe writing my own acq function is a better idea.
You can get the acquisition function value by running BO.acquisition.acquisition_function(x). For more details, you can also read the code in GPyOpt/GPyOpt/acquisitions folder.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I'm trying to obtain the next suggested point over a subspace of the original space: if X=[y, z], I need the next y with fixed z. And
BO.suggest_next_locations(context=z)
is the way to go.My question is:
When I have multiple sets of z, like z_1, z_2, ..., and I will get y_1, y_2,...
To get the 'best' y_i over all the y, I need to know the acquisition value of each point [y_i, z_i]. How could I do that?
Or is there any other way to do this? Many thanks!
The text was updated successfully, but these errors were encountered: