-
-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt strict batch shape semantics for distributions (#806)
* Sketch EnumeratePoutine * Fix dimension logic in EnumerateMessenger * Add more test examples * Refactor ELBO * Attempt to get batch shapes correct for enum_discrete in trace_elbo * Simplify Trace_ELBO * Drop special-case for enum_discrete in Trace_ELBO * Replace enum_discrete kwarg with enumerate_discrete() function * Completely elimitate enum_discrete kwarg * Fix bugs in tests/infer/test_enum.py * Rename enumerate_discrete to config_enumerate * Add analytic KL tests for parallel enumeration * Add test for sum_rightmost() * Skip slow tests on travis * Add another gradient test for enumeration * Add TODOs for more tests * Add failing checks for strict shape semantics * Add variously-sized categoricals test * Remove excruciatingly slow test * Fix scalar error * Flake8 * Fix zero_grads() * Get test_valid_models.py to pass tests * flake8 * Remove name arg to _iter_discrete_filter * Updates per review * Updates per review * Remove xfailing death test that should no longer error * Fix more tests * Fix some integration tests * flake8 * Remove PoissonGammaTests * Use TorchDistribution.mask() in dmm example * Fix shaping errors in dmm.py * fixes to examples and tutorials * fix integration tests * fix xfail marker; vae test * address comment; only use iarange for obs in test_inference * address comment
- Loading branch information
1 parent
4ff08b8
commit fe32be3
Showing
19 changed files
with
329 additions
and
318 deletions.
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
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
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
Oops, something went wrong.