probmods / webppl-viz

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

Make webppl-viz compatible with new distribution interface #26

Closed stuhlmueller closed 8 years ago

stuhlmueller commented 8 years ago

For example, this doesn't work:

var result = Infer({method: 'MCMC', samples: 100}, function(){
  return uniform(0, 1);
});

viz.auto(result);

A possible cause is that webppl-viz makes calls of the form foo.score(null, val) instead of foo.score(val).

longouyang commented 8 years ago

a8c6870 should address this -- can you test?

longouyang commented 8 years ago

actually, try 2450784

stuhlmueller commented 8 years ago

Works, thanks!