-
Notifications
You must be signed in to change notification settings - Fork 408
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
probabilistic reparameterization tutorial #1534
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D41629553 |
Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to make BoTorch better. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to BoTorch here: https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md --> ## Motivation As I am currently refactoring our internal codebase, I had a look at sdaulton PR regarding probabilistic reparameterization. From my understanding one has to use it by representing the categoricals by a one hot encoding for the reparmeterized ACQF and then eventually transforming the input to a numerical represenation via `OneHotToNumeric` especially when one wants to use it togehter with `MixedSingleTaskGP`. Currently MixedSingleTaskGP is very strict on which input transforms are allowed. This PR lifts the restrictions to make it usable with OneHotToNumeric`. Note that the transform also has to be instantiated with `transform_on_train = False` and `train_X` has to be transformed before it is passed to the constructor of `MixedSingleTaskGP`, else the indices for the different kernels are mixed up. ### Have you read the [Contributing Guidelines on pull requests](https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md#pull-requests)? Yes. Pull Request resolved: #1568 Test Plan: Unit tests. ## Related PRs #1534 Reviewed By: esantorella Differential Revision: D42230252 Pulled By: Balandat fbshipit-source-id: b6a0a12d926fbab9890a75438eb60ef849441149
This pull request was exported from Phabricator. Differential Revision: D41629553 |
Summary: Pull Request resolved: pytorch#1534 see title Differential Revision: D41629553 fbshipit-source-id: 2ecd5870ecbb769c7157a29f68cfbafb6a76dd04
e81bcc4
to
05b9764
Compare
This pull request was exported from Phabricator. Differential Revision: D41629553 |
05b9764
to
b6b64d9
Compare
Summary: Pull Request resolved: pytorch#1534 see title Differential Revision: D41629553 fbshipit-source-id: 19856a6df6f88eb0493b4eedc6d53ec5ea141b72
Codecov Report
@@ Coverage Diff @@
## main #1534 +/- ##
===========================================
- Coverage 100.00% 97.29% -2.71%
===========================================
Files 169 171 +2
Lines 14518 14949 +431
===========================================
+ Hits 14518 14544 +26
- Misses 0 405 +405
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Summary: Pull Request resolved: pytorch#1532 Add a wrapper for modifying inputs/outputs. This is useful for not only probabilistic reparameterization, but will also simplify other integrated AFs (e.g. MCMC) as well as fixed feature AFs and things like prior-guided AFs Differential Revision: https://internalfb.com/D41629186 fbshipit-source-id: 51b84765e58c17cda63bc582bfe30d0ca13955b5
Summary: Creates a new helper method for checking both if a given AF is an instance of a class or if the given AF wraps a base AF that is an instance of a class Differential Revision: D43127722 fbshipit-source-id: 13b9d54b05de09d2b2ed86406a921a38fcedab13
Summary: Pull Request resolved: pytorch#1533 Probabilistic reparameterization Differential Revision: https://internalfb.com/D41629217 fbshipit-source-id: f0719b974a8b9de4a1fe8fb62a9c73e9a1fbb551
Summary: Pull Request resolved: pytorch#1534 see title Differential Revision: D41629553 fbshipit-source-id: 522f1fc245c268b4de33524c8a7addd1a8bf15b7
b6b64d9
to
9412010
Compare
This pull request was exported from Phabricator. Differential Revision: D41629553 |
Hi @sdaulton! Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours needs attention. You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Summary: see title
Differential Revision: D41629553