-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a Joint normal form funsor (#69)
* Add a simple delta distribution * Add tests for nontrivial event dim * Simplify unit test * Sketch a general Delta funsor class * Simplify to binding a single name in Delta * Add some tests for Delta * Add test for ground substitution * Add tests for reduction * Add test for conversion from dist.Delta to Delta * Sketch JointNormalForm funsor * Settle on Joint interface * Add more + handling * Remove .log_density field from Delta funsor * Drop handling of .log_density from Joint * Add logic promoting various Binary(-,-) to Joint * Revert "Remove .log_density field from Delta funsor" This reverts commit 897f523. * Revert "Drop handling of .log_density from Joint" This reverts commit a7d0082. * Simplify Gaussian funsor * WIP Refactor Joint patterns * Get Gaussian working with Joint * Add a smoke test for Joint * Add test for reduction * Make xfail more targeted * Update docstring on Joint * Remove unnecessary handling of Binary(ops.add,...)
- Loading branch information
Showing
12 changed files
with
494 additions
and
163 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
Oops, something went wrong.