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

Handle local measures in TransformedDistribution. #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jan 20, 2022

Handle local measures in TransformedDistribution.

This change continues to set up the framework for tracking base measures and computing corrections on transformed densities. In TransformedDistribution we update log_prob to call a version of experimental_local_measure that keeps track of the base measure. We use the backwards-compatibility argument to control this rollout.

Note that this change reverses the bijector method called by transformed_distribution._log_prob from inverse_log_det_jacobian to forward_log_det_jacobian, which (i) shifted the numerics, and (ii) affected which functions get exercised by the test suite. As a result, in this change we (i) loosen tolerances in some tests, and (ii) find and fix a dtype correctness bug in moyal_cdf.

@copybara-service copybara-service bot force-pushed the test_385616650 branch 2 times, most recently from 9318b11 to b7d457d Compare January 20, 2022 23:31
@copybara-service copybara-service bot force-pushed the test_385616650 branch 2 times, most recently from cb3898c to ac6414a Compare February 10, 2022 20:12
This change continues to set up the framework for tracking base measures and computing corrections on transformed densities. In `TransformedDistribution` we update `log_prob` to call a version of `experimental_local_measure` that keeps track of the base measure. We use the backwards-compatibility argument to control this rollout.

Note that this change reverses the bijector method called by `transformed_distribution._log_prob` from `inverse_log_det_jacobian` to `forward_log_det_jacobian`, which (i) shifted the numerics, and (ii) affected which functions get exercised by the test suite. As a result, in this change we (i) loosen tolerances in some tests, and (ii) find and fix a dtype correctness bug in `moyal_cdf`.

PiperOrigin-RevId: 385616650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants