Skip to content

Fixes issue-436: Constrained optimization does not allow duplicate points - #437

Merged
t-muser merged 2 commits into
bayesian-optimization:masterfrom
YoungJaeBae:master
Jul 14, 2023
Merged

t-muser merged 2 commits into
bayesian-optimization:masterfrom
YoungJaeBae:master

Conversation

@YoungJaeBae

Copy link
Copy Markdown
Contributor

Possible fix for issue #436

@codecov-commenter

codecov-commenter commented Jul 13, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.19 🎉

Comparison is base (6a17ba4) 98.23% compared to head (8053b76) 98.42%.

❗ 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     #437      +/-   ##
==========================================
+ Coverage   98.23%   98.42%   +0.19%     
==========================================
  Files           8        8              
  Lines         566      573       +7     
  Branches       83       84       +1     
==========================================
+ Hits          556      564       +8     
  Misses          5        5              
+ Partials        5        4       -1     
Impacted Files Coverage Δ
bayes_opt/bayesian_optimization.py 100.00% <ø> (ø)
bayes_opt/target_space.py 100.00% <100.00%> (+0.78%) ⬆️
bayes_opt/util.py 96.40% <100.00%> (-0.03%) ⬇️

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

@t-muser

t-muser commented Jul 13, 2023

Copy link
Copy Markdown
Member

LGTM, will merge tomorrow.

@t-muser
t-muser merged commit 11a0c6a into bayesian-optimization:master Jul 14, 2023
@t-muser

t-muser commented Jul 14, 2023

Copy link
Copy Markdown
Member

Thanks!

t-muser added a commit that referenced this pull request Oct 14, 2023
* Fixes issue-436: Constrained optimization does not allow duplicate points (#437)

* Update docs of `bayesian_optimization.py` and `observer.py`.

* Fix minor style issue in module docstring

* Update docs of `__init__.py` and `events.py`.

* Fix minor style issue in class docstring

* Add workflow to check docstrings

* Update bayes_opt/bayesian_optimization.py

Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>

---------

Co-authored-by: YoungJae Bae <57710489+YoungJaeBae@users.noreply.github.com>
Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>
t-muser added a commit that referenced this pull request Jan 24, 2024
* Fixes issue-436: Constrained optimization does not allow duplicate points (#437)

* Update docs of `bayesian_optimization.py` and `observer.py`.

* Fix minor style issue in module docstring

* Update docs of `__init__.py` and `events.py`.

* Fix minor style issue in class docstring

* Add workflow to check docstrings

* Update bayes_opt/bayesian_optimization.py

Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>

* Improve acq_max seeding of L-BFGS-B optimization (#297)

* bounds_transformer could bypass global_bounds due to the test logic within _trim function in domain_reduction.py (#441)

* Update trim bounds in domain_reduction.py

Previously, when the new upper limit was less than the original lower limit, the new_bounds could bypass the global_bounds.

* Update test_seq_domain_red.py

Added test cases to catch an error when both bounds of new_bounds exceeded the global_bounds

* Update domain_reduction.py

_trim function now avoids an error when both bounds for a given parameter in new_bounds exceed the global_bounds

* Update domain_reduction.py comments

* fixed English in domain_reduction.py

* use numpy to sort bounds,  boundary exceeded warn.

* simple sort test added

* domain_red windows target_space to global_bounds

Added windowing function to improve the convergence of optimizers that use domain_reduction. Improved comments and documentation.

* target_space.max respects bounds; SDRT warnings

* Remove unused function.

This function was used to prototype a solution. It should not have been pushed and can be removed.

* Updated target_space.py docstrings

* Update tests/test_target_space.py

Co-authored-by: till-m <36440677+till-m@users.noreply.github.com>

* Added pbound warnings, updated various tests.

* updated line spacing for consistency and style

* added pbound test condition

---------

Co-authored-by: till-m <36440677+till-m@users.noreply.github.com>

* DomainReduction docs, docstyle

* Add missing doc dependency

---------

Co-authored-by: YoungJae Bae <57710489+YoungJaeBae@users.noreply.github.com>
Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>
Co-authored-by: ptapping <63924582+ptapping@users.noreply.github.com>
Co-authored-by: Edgar <50716923+perezed00@users.noreply.github.com>
t-muser added a commit that referenced this pull request Feb 26, 2024
* Replace custom colour implementation, add docs for `logger.py`, `util.py` (#435)

* Replace custom colour implementation, add docs for `logger.py`, `util.py`

* minor typo/syntax fixes

* User `or` to separate different possible types

* Update docs & linting for `constraints.py`, `target_space.py` (#440)

* Run tests on any PR

* Update docs, linting

* Update bayes_opt/constraint.py

Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>

* Rename mislabelled parameters

---------

Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>

* Update various docstrings, add workflow to check docstrings (#445)

* Fixes issue-436: Constrained optimization does not allow duplicate points (#437)

* Update docs of `bayesian_optimization.py` and `observer.py`.

* Fix minor style issue in module docstring

* Update docs of `__init__.py` and `events.py`.

* Fix minor style issue in class docstring

* Add workflow to check docstrings

* Update bayes_opt/bayesian_optimization.py

Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>

---------

Co-authored-by: YoungJae Bae <57710489+YoungJaeBae@users.noreply.github.com>
Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>

* Pydocstyle (#453)

* Improve acq_max seeding of L-BFGS-B optimization (#297)

---------

Co-authored-by: ptapping <63924582+ptapping@users.noreply.github.com>

* Domain reduction, Sphinx docs (#455)

* Fixes issue-436: Constrained optimization does not allow duplicate points (#437)

* Update docs of `bayesian_optimization.py` and `observer.py`.

* Fix minor style issue in module docstring

* Update docs of `__init__.py` and `events.py`.

* Fix minor style issue in class docstring

* Add workflow to check docstrings

* Update bayes_opt/bayesian_optimization.py

Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>

* Improve acq_max seeding of L-BFGS-B optimization (#297)

* bounds_transformer could bypass global_bounds due to the test logic within _trim function in domain_reduction.py (#441)

* Update trim bounds in domain_reduction.py

Previously, when the new upper limit was less than the original lower limit, the new_bounds could bypass the global_bounds.

* Update test_seq_domain_red.py

Added test cases to catch an error when both bounds of new_bounds exceeded the global_bounds

* Update domain_reduction.py

_trim function now avoids an error when both bounds for a given parameter in new_bounds exceed the global_bounds

* Update domain_reduction.py comments

* fixed English in domain_reduction.py

* use numpy to sort bounds,  boundary exceeded warn.

* simple sort test added

* domain_red windows target_space to global_bounds

Added windowing function to improve the convergence of optimizers that use domain_reduction. Improved comments and documentation.

* target_space.max respects bounds; SDRT warnings

* Remove unused function.

This function was used to prototype a solution. It should not have been pushed and can be removed.

* Updated target_space.py docstrings

* Update tests/test_target_space.py

Co-authored-by: till-m <36440677+till-m@users.noreply.github.com>

* Added pbound warnings, updated various tests.

* updated line spacing for consistency and style

* added pbound test condition

---------

Co-authored-by: till-m <36440677+till-m@users.noreply.github.com>

* DomainReduction docs, docstyle

* Add missing doc dependency

---------

Co-authored-by: YoungJae Bae <57710489+YoungJaeBae@users.noreply.github.com>
Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>
Co-authored-by: ptapping <63924582+ptapping@users.noreply.github.com>
Co-authored-by: Edgar <50716923+perezed00@users.noreply.github.com>

* Small fixes, minor cosmetic changes

* Add some more docs to target space and constraint, cosmetic changes

* Remove duplicate code snippet

* Remove numpydoc + adjust "*" formatting accordingly

* Explicitly add D417, adjust code accordingly

* Adjust `TargetSpace.probe()` behaviour to be in line with docstring.

* Update bayes_opt/target_space.py

Co-authored-by: Edgar <50716923+perezed00@users.noreply.github.com>

* Update README.md

---------

Co-authored-by: Leandro Braga <18340809+leandrobbraga@users.noreply.github.com>
Co-authored-by: YoungJae Bae <57710489+YoungJaeBae@users.noreply.github.com>
Co-authored-by: ptapping <63924582+ptapping@users.noreply.github.com>
Co-authored-by: Edgar <50716923+perezed00@users.noreply.github.com>
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.

3 participants