bayesian-optimization
bayesian-optimization copied to clipboard
A coding error in gp.py
In line 48: expected_improvement[sigma == 0.0] == 0.0 It should be: expected_improvement[sigma == 0.0] = 0.0
I wonder what that command means. In that case, I think it might work as below..
if sigma equals zero, index 1 (sigma==0 -> True), i.e., expected_improvement[1]=0? otherwise, index 0 (sigma !=0 -> False), i.e., expected_improvement[0]=0?
If I'm wrong, please let me know. Thanks in advance