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

Reap base_samples argument of GPyTorchPosterior.rsample #2254

Closed
wants to merge 1 commit into from

Conversation

esantorella
Copy link
Member

Summary:
The base_samples argument to GPyTorchPosterior.rsample was deprecated in BoTorch 8.0.0

  • reaped the deprecated code
  • removed the corresponding unit tests
  • Removed base_samples argument from MockPosterior.rsample used for testing, since the base Posterior class also does not permit base_samples in rsample. Moved an exception in MockPosterior so that invalid base_samples will still be checked.
  • stopped TRBO from using the deprecated code; reshaped samples to match legacy behavior
  • fixed a docstring in PosteriorList

Differential Revision: D55038429

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

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

Summary:
The `base_samples` argument to GPyTorchPosterior.rsample was deprecated in BoTorch 8.0.0
- reaped the deprecated code
- removed the corresponding unit tests
- Removed `base_samples` argument from `MockPosterior.rsample` used for testing, since the base Posterior class also does not permit `base_samples` in `rsample`. Moved an exception in `MockPosterior` so that invalid `base_samples` will still be checked.
- fixed a docstring in PosteriorList

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

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

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.97%. Comparing base (1a8b4ea) to head (a66dfa7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2254      +/-   ##
==========================================
- Coverage   99.97%   99.97%   -0.01%     
==========================================
  Files         197      197              
  Lines       17163    17154       -9     
==========================================
- Hits        17159    17150       -9     
  Misses          4        4              

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

esantorella added a commit to esantorella/botorch that referenced this pull request Mar 19, 2024
Summary:
X-link: facebookexternal/botorch_fb#17


The `base_samples` argument to GPyTorchPosterior.rsample was deprecated in BoTorch 8.0.0
- reaped the deprecated code
- removed the corresponding unit tests
- Removed `base_samples` argument from `MockPosterior.rsample` used for testing, since the base Posterior class also does not permit `base_samples` in `rsample`. Moved an exception in `MockPosterior` so that invalid `base_samples` will still be checked.
- fixed a docstring in PosteriorList

Reviewed By: saitcakmak

Differential Revision: D55038429
esantorella added a commit to esantorella/botorch that referenced this pull request Mar 19, 2024
Summary:
X-link: facebookexternal/botorch_fb#17


The `base_samples` argument to GPyTorchPosterior.rsample was deprecated in BoTorch 8.0.0
- reaped the deprecated code
- removed the corresponding unit tests
- Removed `base_samples` argument from `MockPosterior.rsample` used for testing, since the base Posterior class also does not permit `base_samples` in `rsample`. Moved an exception in `MockPosterior` so that invalid `base_samples` will still be checked.
- fixed a docstring in PosteriorList

Reviewed By: saitcakmak

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

This pull request has been merged in 4545f98.

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.

None yet

2 participants