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
Sorry if this is an obvious question, however I was reviewing the code for the constraint algorithm and stumbled across this line. I was wondering about the logic behind checking the lowerbound for the upper constraint. Why is this not checking the upper bound instead?
first of all, great thing that you're checking the code!
You're completely right, this should be checking the upper constraint (frankly, quite an embarrassing thing to mess up on my part). The good news is that this just makes the code slightly less efficient by making an unnecessary call to .cdf, but doesn't break anything -- probably also why no one noticed it before. However, given that .cdf is about 1000x slower than calling np.array([1]) this should definitely be corrected.
Would you be interested in making a PR to fix this? :)
Sorry if this is an obvious question, however I was reviewing the code for the constraint algorithm and stumbled across this line. I was wondering about the logic behind checking the lowerbound for the upper constraint. Why is this not checking the upper bound instead?
BayesianOptimization/bayes_opt/constraint.py
Line 206 in dc6f251
The text was updated successfully, but these errors were encountered: