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

Follow-ups from D40783106 (fantasize refactor) #1479

Closed
wants to merge 1 commit into from

Conversation

esantorella
Copy link
Member

Summary:
see T137147547
[x] Make HeteroskedasticSingleTaskGP not a subclass of SingleTaskGP since it can't fantasize
[x] Make SaasFullyBayesianSingleTaskGP not a subclass of SingleTaskGP since it can't fantasize
[x] Make MultiTaskGP have a fantasize method (debatable! it used to have one, but wasn't used)
[x] Restore fantasize method with NotImplementedError to SaasFullyBayesianMultiTaskGP (as a result of adding fantasize to MultiTaskGP)
[x] Make KroneckerMultiTaskGP have a fantasize method (debatable! it used to have one, but wasn't used)
[x] Clean up some especially annoying type errors so I can use Pyre for my own use

Differential Revision: D41053234

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Nov 5, 2022
@facebook-github-bot
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Nov 6, 2022

Codecov Report

Merging #1479 (41c4f90) into main (9d90635) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #1479   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          134       134           
  Lines        12397     12408   +11     
=========================================
+ Hits         12397     12408   +11     
Impacted Files Coverage Δ
botorch/models/fully_bayesian.py 100.00% <100.00%> (ø)
botorch/models/fully_bayesian_multitask.py 100.00% <100.00%> (ø)
botorch/models/gp_regression.py 100.00% <100.00%> (ø)
botorch/models/multitask.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

@esantorella has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

esantorella added a commit to esantorella/botorch that referenced this pull request Nov 7, 2022
Summary:
see T137147547

Remove inappropriate subclassing of `SingleTaskGP` (and clean up associated to-dos)
[x] Make `HeteroskedasticSingleTaskGP` not a subclass of `SingleTaskGP` since it can't `fantasize`
[x] Make `SaasFullyBayesianSingleTaskGP` not a subclass of `SingleTaskGP` since it can't `fantasize`
[x] Fix downstream problems in multiple dispatched this caused....

Add `fantasize` back to classes that weren't using it, but can call it and used to have it
[x] Make `MultiTaskGP` have a `fantasize` method (debatable! it used to have one, but wasn't used)
[x] Restore `fantasize` method with `NotImplementedError` to `SaasFullyBayesianMultiTaskGP` (as a result of adding `fantasize` to `MultiTaskGP`)
[x] Make `KroneckerMultiTaskGP` have a `fantasize` method (debatable! it used to have one, but wasn't used)

Pull Request resolved: pytorch#1479

Differential Revision: D41053234

Pulled By: esantorella

fbshipit-source-id: 6f422916b7ae20fe8235b280e4b917055cfab5d1
@facebook-github-bot
Copy link
Contributor

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

Summary:
see T137147547

Remove inappropriate subclassing of `SingleTaskGP` (and clean up associated to-dos)
[x] Make `HeteroskedasticSingleTaskGP` not a subclass of `SingleTaskGP` since it can't `fantasize`
[x] Make `SaasFullyBayesianSingleTaskGP` not a subclass of `SingleTaskGP` since it can't `fantasize`
[x] Fix downstream problems in multiple dispatched this caused....

Add `fantasize` back to classes that weren't using it, but can call it and used to have it
[x] Make `MultiTaskGP` have a `fantasize` method (debatable! it used to have one, but wasn't used)
[x] Restore `fantasize` method with `NotImplementedError` to `SaasFullyBayesianMultiTaskGP` (as a result of adding `fantasize` to `MultiTaskGP`)
[x] Make `KroneckerMultiTaskGP` have a `fantasize` method (debatable! it used to have one, but wasn't used)

Pull Request resolved: pytorch#1479

Reviewed By: saitcakmak

Differential Revision: D41053234

Pulled By: esantorella

fbshipit-source-id: 2616ec741cf93504c8e709002cb0de88d69f3adb
@facebook-github-bot
Copy link
Contributor

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

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