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

Remove multi-surrogate support in MBM #2957

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary:
MBM with multiple surrogates was never supported e2e and is being deprecated. This diff:

  • Adds a new surrogate_spec: Surrogate input to BoTorchModel, to replace surrogate_specs: dict[str, Surrogate] input.
  • Raises a DeprecationWarning (as an exception) if surrogate_specs is passed in with multiple elements.
  • Cleans up the code that was necessary to support multiple surrogates.

Differential Revision: D64875988

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

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

@codecov-commenter
Copy link

codecov-commenter commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 98.70130% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.68%. Comparing base (322ea96) to head (9dcfef4).

Files with missing lines Patch % Lines
ax/models/torch/botorch_modular/model.py 96.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2957   +/-   ##
=======================================
  Coverage   95.68%   95.68%           
=======================================
  Files         504      504           
  Lines       49531    49433   -98     
=======================================
- Hits        47395    47302   -93     
+ Misses       2136     2131    -5     

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

Summary:

MBM with multiple surrogates was never supported e2e and is being deprecated. This diff:
- Adds a new `surrogate_spec: Surrogate` input to `BoTorchModel`, to replace `surrogate_specs: dict[str, Surrogate]` input.
- Raises a `DeprecationWarning` (as an exception) if `surrogate_specs` is passed in with multiple elements.
- Cleans up the code that was necessary to support multiple surrogates.

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

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

saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Oct 24, 2024
Summary:

MBM with multiple surrogates was never supported e2e and is being deprecated. This diff:
- Adds a new `surrogate_spec: Surrogate` input to `BoTorchModel`, to replace `surrogate_specs: dict[str, Surrogate]` input.
- Raises a `DeprecationWarning` (as an exception) if `surrogate_specs` is passed in with multiple elements.
- Cleans up the code that was necessary to support multiple surrogates.

Differential Revision: D64875988
saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Oct 24, 2024
Summary:

MBM with multiple surrogates was never supported e2e and is being deprecated. This diff:
- Adds a new `surrogate_spec: Surrogate` input to `BoTorchModel`, to replace `surrogate_specs: dict[str, Surrogate]` input.
- Raises a `DeprecationWarning` (as an exception) if `surrogate_specs` is passed in with multiple elements.
- Cleans up the code that was necessary to support multiple surrogates.

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

This pull request has been merged in 3033b14.

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