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?
|
norm(loc=y_mean, scale=y_std).cdf(self._ub[0]) if self._lb[0] != np.inf else np.array([1]) |
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