probsys / sppl

Probabilistic programming system for fast and exact symbolic inference
Apache License 2.0
76 stars 10 forks source link

Make weight distribution of Sum node an SPN and expose the random choice #3

Closed fsaad closed 4 years ago

fsaad commented 4 years ago
fsaad commented 4 years ago

This feature can be easily implemented by making the child nodes of the sum be products of a nominal SPN that is atomic at the index of each component.

fsaad commented 4 years ago

Only part of this issue was closed, i.e. the weight is still not a SPN. Unified by #10

fsaad commented 4 years ago

https://github.com/probcomp/sum-product-dsl/commit/c1cf6c2db8e5eb534facf05938e39e8c50a830e8