-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`. PiperOrigin-RevId: 385616650
- Loading branch information
DistraxDev
authored and
DistraxDev
committed
Feb 17, 2022
1 parent
cf013e2
commit 72afc80
Showing
4 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters