Skip to content

Conversation

@saitcakmak
Copy link
Contributor

Summary: Currently, TransformedPosterior.mean throws an error if the _posterior doesn't have a variance attribute or if the variance throws a NotImplementedError. This wraps _posterior.variance with a try/except block to support the use with posteriors that don't have a variance.

Differential Revision: D29506115

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

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

@codecov
Copy link

codecov bot commented Jul 1, 2021

Codecov Report

Merging #855 (1bd3cc0) into master (cb2e5f3) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #855   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          108       108           
  Lines         8030      8034    +4     
=========================================
+ Hits          8030      8034    +4     
Impacted Files Coverage Δ
botorch/posteriors/transformed.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb2e5f3...1bd3cc0. Read the comment docs.

…ytorch#855)

Summary:
Pull Request resolved: meta-pytorch#855

Currently, `TransformedPosterior.mean` throws an error if the `_posterior` doesn't have a `variance` attribute or if the `variance` throws a `NotImplementedError`. This wraps `_posterior.variance` with a `try/except` block to support the use with posteriors that don't have a `variance`.

Differential Revision: D29506115

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 2982130.

@saitcakmak saitcakmak deleted the export-D29506115 branch August 17, 2021 23:35
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