-
Notifications
You must be signed in to change notification settings - Fork 261
What policy is used when evaluating external functions? #340
Comments
You should feel free to look at the source code associated with some of these objects. Specifically, if you look at the source for
|
This needs more code to troubleshoot. I suspect optimization hasn't run yet, which is why x_opt and fx_opt aren't initialized |
Please post the entire code you're using (not in a screenshot, try using the GitHub code chunk format with ```) so it's easier for us to see what's going on. Quickly, looking at your screenshot, you appear to be trying to optimize |
Have you read the tutorials on GPyOpt? This one explains how to run optimization without excplicitly specifying the objective fuction pretty clearly: I suspect you are not providing initial values to the bayes opt object. Either initial values or explicit funciton to evaluate are required. |
Hi, Could you help me explain my second question above that the convergence plot shows 5 iterations when the max_iter=1?
|
Again, please post your full code for the case when You are getting 6 evaluations on the plot because this plot displays all known evaluations. This includes initial values too. If you provide 5 initial values, or have GPyOpt generate 5 (default) initial values for you, as is the case on your last post, plus one iteration of optimization, gives 6. Note that the first plot is showing distance between two consecutive points, so it has 5 datapoints on it, not 6. |
Thank you so much for your explanation!
My understanding is an eternal function here is like a black-box function, which has no formula.
|
Right, now it's very clear once we see the full code block. Calling If you need GPyOpt to handle the whole optimization, you have to give it access to the objective. |
@lewisscola |
Hi,
I see the example that can do Bayesian Optimization on external functions. The example is in this website:https://nbviewer.jupyter.org/github/SheffieldML/GPyOpt/blob/devel/manual/GPyOpt_external_objective_evaluation.ipynb
I'm just wondering which policy is used in the BO, EI, PI or LCB?
Thank you for your help!
The text was updated successfully, but these errors were encountered: