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

Merge create_single_objective_problem_from_botorch and create_multi_objective_problem_from_botorch; support constrained MOO #2722

Closed
wants to merge 1 commit into from

Conversation

esantorella
Copy link
Contributor

Summary:
Context: These functions have a lot of overlapping functionality. Combining them makes it easier to extend their functionality (for example, by supporting constrained MOO).

This PR:

  • Combines create_single_problem_objective_from_botorch and create_multi_objective_problem_from_botorch into create_problem_from_botorch
  • Reads lower_is_better off the test problem -- BoTorch test problems assume minimization unless negate is set to True -- instead of requiring the user to pass it (multi-objective problems used to always have lower_is_better=True, so this is more accurate and prevents mismatch)
  • Adds support for constrained MOO problems from Botorch
  • Remove stub for constrained MOO problem that only existed to test for an exception that is no longer raised

Differential Revision: D61877865

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 28, 2024
@facebook-github-bot
Copy link
Contributor

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

@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.40%. Comparing base (5d91216) to head (d691527).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2722   +/-   ##
=======================================
  Coverage   95.40%   95.40%           
=======================================
  Files         490      490           
  Lines       47828    47829    +1     
=======================================
+ Hits        45631    45633    +2     
+ Misses       2197     2196    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@facebook-github-bot
Copy link
Contributor

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

esantorella added a commit to esantorella/Ax that referenced this pull request Aug 28, 2024
…bjective_problem_from_botorch; support constrained MOO (facebook#2722)

Summary:
Pull Request resolved: facebook#2722

Context: These functions have a lot of overlapping functionality. Combining them makes it easier to extend their functionality (for example, by supporting constrained MOO).

This PR:
* Combines `create_single_problem_objective_from_botorch` and `create_multi_objective_problem_from_botorch` into `create_problem_from_botorch`
* Reads `lower_is_better` off the test problem -- BoTorch test problems assume minimization unless `negate` is set to True -- instead of requiring the user to pass it (multi-objective problems used to always have lower_is_better=True, so this is more accurate and prevents mismatch)
* Adds support for constrained MOO problems from Botorch
* Remove stub for constrained MOO problem that only existed to test for an exception that is no longer raised

Differential Revision: D61877865
…bjective_problem_from_botorch; support constrained MOO (facebook#2722)

Summary:
Pull Request resolved: facebook#2722

Context: These functions have a lot of overlapping functionality. Combining them makes it easier to extend their functionality (for example, by supporting constrained MOO).

This PR:
* Combines `create_single_problem_objective_from_botorch` and `create_multi_objective_problem_from_botorch` into `create_problem_from_botorch`
* Reads `lower_is_better` off the test problem -- BoTorch test problems assume minimization unless `negate` is set to True -- instead of requiring the user to pass it (multi-objective problems used to always have lower_is_better=True, so this is more accurate and prevents mismatch)
* Adds support for constrained MOO problems from Botorch
* Remove stub for constrained MOO problem that only existed to test for an exception that is no longer raised

Reviewed By: Balandat

Differential Revision: D61877865
@facebook-github-bot
Copy link
Contributor

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

esantorella added a commit to esantorella/Ax that referenced this pull request Aug 29, 2024
…bjective_problem_from_botorch; support constrained MOO (facebook#2722)

Summary:
Pull Request resolved: facebook#2722

Context: These functions have a lot of overlapping functionality. Combining them makes it easier to extend their functionality (for example, by supporting constrained MOO).

This PR:
* Combines `create_single_problem_objective_from_botorch` and `create_multi_objective_problem_from_botorch` into `create_problem_from_botorch`
* Reads `lower_is_better` off the test problem -- BoTorch test problems assume minimization unless `negate` is set to True -- instead of requiring the user to pass it (multi-objective problems used to always have lower_is_better=True, so this is more accurate and prevents mismatch)
* Adds support for constrained MOO problems from Botorch
* Remove stub for constrained MOO problem that only existed to test for an exception that is no longer raised

Differential Revision: D61877865

Reviewed By: Balandat
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 6a9ef95.

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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants