Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warmup phase not considering constraints #416

Merged
merged 3 commits into from
May 10, 2023

Conversation

leandrobbraga
Copy link
Contributor

Fixes #412

Previously the warmup phase would use the acquisition function directly without considering the p_constraint. This could lead to inflated values of the acquisition function in unfeasible spaces.

Previously the warmup phase would use the acquisition function
directly without considering the p_constraint. This could lead
to inflated values of the acquisition function in unfeasible
spaces.
@codecov-commenter
Copy link

codecov-commenter commented May 6, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (d4ed3a6) 98.57% compared to head (bdfa55b) 98.56%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #416      +/-   ##
==========================================
- Coverage   98.57%   98.56%   -0.01%     
==========================================
  Files           8        8              
  Lines         560      559       -1     
  Branches       79       79              
==========================================
- Hits          552      551       -1     
  Misses          4        4              
  Partials        4        4              
Impacted Files Coverage Δ
bayes_opt/target_space.py 99.18% <ø> (-0.01%) ⬇️
bayes_opt/util.py 97.84% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bwheelz36 bwheelz36 requested a review from till-m May 7, 2023 01:13
@till-m
Copy link
Member

till-m commented May 8, 2023

Hey @leandrobbraga, sorry for the delay. I should be able to review both PR's later today.

bayes_opt/util.py Outdated Show resolved Hide resolved
bayes_opt/util.py Outdated Show resolved Hide resolved
tests/test_constraint.py Show resolved Hide resolved
bayes_opt/target_space.py Show resolved Hide resolved
bayes_opt/util.py Outdated Show resolved Hide resolved
tests/test_constraint.py Show resolved Hide resolved
bayes_opt/util.py Outdated Show resolved Hide resolved
@till-m
Copy link
Member

till-m commented May 9, 2023

PR looks good to me! Will also merge tomorrow, provided merging #415 doesn't cause any conflicts!

@till-m till-m merged commit 698ca60 into bayesian-optimization:master May 10, 2023
6 checks passed
@till-m
Copy link
Member

till-m commented May 10, 2023

Thanks @leandrobbraga, both for spotting the problems in the first place and for the excellent contributions you've made!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constrained optimization
4 participants