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

Add option to disable retrying on optimization warning #1696

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary:
When gen_candidates exists with an optimization warning, we retry with a new set of initial conditions. In certain settings, gen_candidates_scipy is expected to exit with an optimization warning. This allows turning off this behavior in such settings.

Example use case: When using straight through estimators for optimizing in mixed discrete search spaces, we often get ABNORMAL_TERMINATION_IN_LNSRCH since these gradients are a bit ill-behaved (due to function evaluations happening after rounding).

Reviewed By: esantorella

Differential Revision: D43478712

Summary:
When `gen_candidates` exists with an optimization warning, we retry with a new set of initial conditions. In certain settings, `gen_candidates_scipy` is expected to exit with an optimization warning. This allows turning off this behavior in such settings.

Example use case: When using straight through estimators for optimizing in mixed discrete search spaces, we often get `ABNORMAL_TERMINATION_IN_LNSRCH` since these gradients are a bit ill-behaved (due to function evaluations happening after rounding).

Reviewed By: esantorella

Differential Revision: D43478712

fbshipit-source-id: a1bfcbaaf387a46f38ded0b9802bb52cb1c8511f
@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Feb 21, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D43478712

@codecov
Copy link

codecov bot commented Feb 21, 2023

Codecov Report

Merging #1696 (c9e25a5) into main (ecd83ca) will not change coverage.
The diff coverage is 100.00%.

❗ Current head c9e25a5 differs from pull request most recent head 300dd38. Consider uploading reports for the commit 300dd38 to get more accurate results

@@            Coverage Diff            @@
##              main     #1696   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          169       169           
  Lines        14537     14538    +1     
=========================================
+ Hits         14537     14538    +1     
Impacted Files Coverage Δ
botorch/optim/optimize.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@saitcakmak
Copy link
Contributor Author

This was merged in 8db9c7b. Not sure why the PR got disconnected.

@saitcakmak saitcakmak closed this Feb 23, 2023
@saitcakmak saitcakmak deleted the export-D43478712 branch February 23, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants