-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem about allow_duplicate_points
#468
Comments
Hey @Forestsene, If you don't mind the question, what are you trying to do? Specifically, I'm wondering why you're registering the same point multiple times, especially if you expect it to not affect the GP. Most likely the fitting process of the GP produces different results. If I read correctly, your working with a 1-dimensional problem. You could maybe plot the acq function (see the script here as an example on how to do that) -- if you compare the acq function in both cases, you should see a difference. Another reason is that the acq maximization is non-deterministic, so the next probed point is not always the same, even when using the exact same underlying GP/acq. Let us know if this helps. |
Thanks for your advice! I ploted the acq function and the fitting process of the GP produces different results. If the next_new_point given by BO is a point that has already been collected, I don't want to repeat the sampling because it takes a lot of time and will give almost the same result. At this point, I was not sure whether to manually modify the next sampling point or transfer this point again to the Gaussian process regression, so I did this test. My intuition tells me that if I fit the repeated points to a Gaussian process, I should get the same result, just like a linear regression, so I'll get the same next_new_point. But according to the test results, that's not the case. Is this a property of Gaussian process fitting? Expect your reply! |
Hi @Forestsene, From looking at the plot, I'm guessing the fitting process produces very different length scales. You could check this by inspecting the return object of Otherwise, I'm hoping someone else has better advice, I'm a bit out of my depth here admittedly. |
Hi @Forestsene, I assume the problem is solved. I will close this issue for now. |
When I have to use some same points to optimize a black_box_function, I notice a strange phenomenon: When I use 5 or 4 of the same points, I obtain different next new point.
Here is my script:
Besides, I have changed the kernel in bayesian_optimization.py Line 127
This did not occur when I ran the script in the tutorial(https://bayesian-optimization.github.io/BayesianOptimization/constraints.html)
I am not sure whether this is due to the complexity of the prediction function or the script. Could you give me some advice? Thank you very much!
The text was updated successfully, but these errors were encountered: