From 476442c386a7a7c03084870817d39d4ad30e9b7d Mon Sep 17 00:00:00 2001 From: YoungJaeBae Date: Thu, 13 Jul 2023 19:28:01 +0900 Subject: [PATCH 1/2] Fixes issue-436: Constrained optimization does not allow duplicate points (#436) --- .vscode/settings.json | 6 ++++++ bayes_opt/bayesian_optimization.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..d99f2f30c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "[python]": { + "editor.defaultFormatter": "ms-python.black-formatter" + }, + "python.formatting.provider": "none" +} \ No newline at end of file diff --git a/bayes_opt/bayesian_optimization.py b/bayes_opt/bayesian_optimization.py index 97a7b9de1..364e1c822 100644 --- a/bayes_opt/bayesian_optimization.py +++ b/bayes_opt/bayesian_optimization.py @@ -150,7 +150,8 @@ def __init__(self, f, pbounds, constraint=constraint_, - random_state=random_state + random_state=random_state, + allow_duplicate_points=self._allow_duplicate_points ) self.is_constrained = True From 8053b762607509e2625fb3fbef5089c3f67516f1 Mon Sep 17 00:00:00 2001 From: YoungJaeBae Date: Thu, 13 Jul 2023 19:30:56 +0900 Subject: [PATCH 2/2] Minor: removed personal file --- .vscode/settings.json | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index d99f2f30c..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "[python]": { - "editor.defaultFormatter": "ms-python.black-formatter" - }, - "python.formatting.provider": "none" -} \ No newline at end of file