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

Introduce ModelDict and MultiModelAcquisitionFunction #1584

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary:
Introduces a lightweight ModelDict container, which is simply a ModuleDict[str, Model], and an abstract MultiModelAcquisitionFunction class that accepts a ModelDict rather than a Model.

The goal here is to help shape the MBM Surrogate refactor by having a concrete example of how the multiple surrogates would be consumed in BoTorch.

Reviewed By: lena-kashtelyan

Differential Revision: D41564744

Summary:
Introduces a lightweight `ModelDict` container, which is simply a `ModuleDict[str, Model]`, and an abstract `MultiModelAcquisitionFunction` class that accepts a `ModelDict` rather than a `Model`.

The goal here is to help shape the MBM Surrogate refactor by having a concrete example of how the multiple surrogates would be consumed in BoTorch.

Reviewed By: lena-kashtelyan

Differential Revision: D41564744

fbshipit-source-id: 1ff672a3c713e7213a87536588852973360dee99
@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Dec 22, 2022
@facebook-github-bot
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Dec 22, 2022

Codecov Report

Merging #1584 (594d729) into main (d7edf20) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #1584   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          153       153           
  Lines        13641     13651   +10     
=========================================
+ Hits         13641     13651   +10     
Impacted Files Coverage Δ
botorch/acquisition/acquisition.py 100.00% <100.00%> (ø)
botorch/models/model.py 100.00% <100.00%> (ø)

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ab28cc4.

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.

2 participants