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
{{ message }}
Repository navigation
Constrained optimization does not allow duplicate points #436
Using bayesian-optimization 1.4.3, in bayesian_optimization.py line 135-155 ,
if constraint is None:
# Data structure containing the function to be optimized, the
# bounds of its domain, and a record of the evaluations we have
# done so far
self._space = TargetSpace(f, pbounds, random_state=random_state,
allow_duplicate_points=self._allow_duplicate_points)
self.is_constrained = False
else:
constraint_ = ConstraintModel(
constraint.fun,
constraint.lb,
constraint.ub,
random_state=random_state
)
self._space = TargetSpace(
f,
pbounds,
constraint=constraint_,
random_state=random_state
)
self.is_constrained = True
constrained optimization does not pass argument allow_duplicate_points to initialization of TargetSpace instance, eventually causing errors.
Activity
t-muser commentedon Jul 13, 2023
I don't think this is intended behaviour (@bwheelz36?).
@YoungJaeBae Would you be willing to provide a fix?
YoungJaeBae commentedon Jul 13, 2023
Thank you for answering.
I am not familiar with contributing. Would you please do me a favor?
Best Regards,
t-muser commentedon Jul 13, 2023
Not sure I understand your question correctly, but if you're asking how to contribute:
See also here.
Fixes issue-436: Constrained optimization does not allow duplicate po…