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

Allow passing in task features as part of X in MTGP.posterior #1868

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary: Prior to this change, MultiTaskGP could be evaluated using inputs of shape batch x d when using the model directly, and using inputs of shape batch x d + 1 when the model was wrapped in a ModelListGP. This diff (combined with #1854) legitimizes both input shapes regardless of what API is used to evaluate the model. This will unify the APIs and increase the flexibility in how the model is used.

Differential Revision: D46496775

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

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

@codecov
Copy link

codecov bot commented Jun 6, 2023

Codecov Report

Merging #1868 (4c4f9b0) into main (79a1162) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 4c4f9b0 differs from pull request most recent head 5224872. Consider uploading reports for the commit 5224872 to get more accurate results

@@            Coverage Diff            @@
##              main     #1868   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          171       171           
  Lines        15055     15063    +8     
=========================================
+ Hits         15055     15063    +8     
Impacted Files Coverage Δ
botorch/models/gpytorch.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

…h#1868)

Summary:
Pull Request resolved: pytorch#1868

Prior to this change, `MultiTaskGP` could be evaluated using inputs of shape `batch x d` when using the model directly, and using inputs of shape `batch x d + 1` when the model was wrapped in a `ModelListGP`. This diff (combined with pytorch#1854) legitimizes both input shapes regardless of what API is used to evaluate the model. This will unify the APIs and increase the flexibility in how the model is used.

Reviewed By: Balandat

Differential Revision: D46496775

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

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

saitcakmak added a commit to saitcakmak/botorch that referenced this pull request Jun 7, 2023
…h#1868)

Summary:
Pull Request resolved: pytorch#1868

Prior to this change, `MultiTaskGP` could be evaluated using inputs of shape `batch x d` when using the model directly, and using inputs of shape `batch x d + 1` when the model was wrapped in a `ModelListGP`. This diff (combined with pytorch#1854) legitimizes both input shapes regardless of what API is used to evaluate the model. This will unify the APIs and increase the flexibility in how the model is used.

Differential Revision: https://internalfb.com/D46496775

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

This pull request has been merged in f4405e9.

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