Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Bug for EI? #17

Closed
glouppe opened this issue Mar 25, 2016 · 6 comments
Closed

Bug for EI? #17

glouppe opened this issue Mar 25, 2016 · 6 comments
Labels

Comments

@glouppe
Copy link
Member

glouppe commented Mar 25, 2016

As observed in https://github.com/MechCoder/scikit-optimize/pull/14, the approximated objective when using EI is really weird. What is the issue?

@MechCoder
Copy link
Member

I'll have a detailed look across the weekend (among other things).

@MechCoder
Copy link
Member

I looked at this research paper (http://arxiv.org/pdf/1206.2944.pdf) and cross-checked the implementation once more and it seems correct to me. Will you be able to have a quick look?

@jmetzen It would be great if you could let me know which formula the line here (https://github.com/jmetzen/bayesian_optimization/blob/master/bayesian_optimization/acquisition_functions.py#L109) follows, It seems to be different from the one mentioned in the paper.

@MechCoder
Copy link
Member

In particular, for the case when the std is zero, I've set the exploration term to zero. Is that right?

@jmetzen
Copy link

jmetzen commented Mar 27, 2016

You can ignore self.kappa in my implementation; it defaults to zero and I keep it at this value typically.
Moreover, the sign of gamma_x depends on whether you want to minimize or maximize the objective function. The Snoek paper uses the notation for minimization as far as I remember. If you now insert the identity Φ(z) = 1/2[1 + erf(z/ 2)] and do some arithmetic, you should end up with the formula used in my implementation (hopefully ;-))

@glouppe
Copy link
Member Author

glouppe commented Mar 27, 2016

@MechCoder Yeah, indeed, I just had look myself and I did not realize that EI was mostly flat everywhere. Only UCB is giving these nice figures :) Closing.

@glouppe glouppe closed this as completed Mar 27, 2016
@MechCoder
Copy link
Member

Great, that saves me the effort of reading yet another paper :P

holgern added a commit that referenced this issue Jan 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants