probmods / webppl-viz

Visualization for WebPPL
http://probmods.github.io/webppl-viz/
Other
14 stars 9 forks source link

Directly visualize continuous distributions #27

Closed stuhlmueller closed 7 years ago

stuhlmueller commented 8 years ago

Example:

var myBeta = Beta({a: 1, b: 1});
viz.auto(myBeta)

Currently, this fails with message support.map is not a function.

longouyang commented 8 years ago

Methods that operate on dists currently assume that the support is an array; we'd need to modify things to work on the object supports of continuous distributions.

longouyang commented 7 years ago

Some progress in 590220a; we now can handle things like Gaussian, Beta, and tensor-valued things like Dirichlet.

Poisson needs some work though.

longouyang commented 7 years ago

Added a dumb fix for Poisson in 6209f32 (just clip the domain to {0, ..., 10} and inform the user that we're doing this for viz purposes)