Skip to content

Instantly share code, notes, and snippets.

@smihael
Created April 6, 2018 23:21
Show Gist options
  • Save smihael/43669d78bbb445fac8421ddf8239b9b5 to your computer and use it in GitHub Desktop.
Save smihael/43669d78bbb445fac8421ddf8239b9b5 to your computer and use it in GitHub Desktop.
Test file for atom-webppl-preview
viz(repeat(100,flip))
// viz(repeat(10,flip))
display("a")
// display("b")
var binomial = function() {
var a = flip();
var b = flip();
var c = flip();
return a + b + c;
};
viz(Infer({model: binomial}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment