Skip to content

Commit 8a20d9f

Browse files
committed
Fix issue with constraints and allow_duplicate_points
1 parent 6654358 commit 8a20d9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

climada/util/calibrate/bayesian_optimizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def __post_init__(
248248
allow_duplicate_points=allow_duplicate_points,
249249
**bayes_opt_kwds,
250250
)
251+
self.optimizer.space._allow_duplicate_points = allow_duplicate_points
251252

252253
def _target_func(self, true: pd.DataFrame, predicted: pd.DataFrame) -> Number:
253254
"""Invert the cost function because BayesianOptimization maximizes the target"""

0 commit comments

Comments
 (0)