Created
January 18, 2016 20:57
-
-
Save stuhlmueller/4bf0c2e5e0f30aef15a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var model = function() { | |
var x = uniform(0,1); | |
var yERP = Enumerate(function(){ | |
return flip(x); | |
}) | |
var y = sample(yERP); | |
return x + y; | |
} | |
MCMC(model, { kernel: { HMC: { steps: 10, stepSize: 1 }}, | |
samples: 1000 }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment