probmods / webppl-viz

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

Visualizing models #5

Open longouyang opened 8 years ago

longouyang commented 8 years ago
viz.model = function(model) { 
  var string = model.toString();
  var parsed = parse(string);
  // then do some static analysis to make a plate notation diagram or something
}
ngoodman commented 8 years ago

at some point kimbal had a flow analysis that would make a data flow diagram from a function (at least for some restricted language). this is cool because it's the bayes net when there is one....

i don't think this is a super easy thing to replicate though, unless it's still in our codebase.

longouyang commented 8 years ago

Looks like that code is still there (e.g., src/analysis/visualize.js and docs/analysis/documentation.txt)