Skip to content

Commit

Permalink
Update acquisition function scaling for constrained optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
till-m committed May 8, 2023
2 parents 33b99ec + ff087a0 commit 0baf8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bayes_opt/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def to_minimize(x):
if target < 0:
return target * p_constraint
else:
return target / (0.5 + p_constraint)
return target / (0.5 + 0.5 * p_constraint)
else:
to_minimize = lambda x: -ac(x.reshape(1, -1), gp=gp, y_max=y_max)

Expand Down

0 comments on commit 0baf8e1

Please sign in to comment.