Skip to content

Instantly share code, notes, and snippets.

@tigershen23
Created June 9, 2018 14:56
Show Gist options
  • Save tigershen23/738e28a248810f98f3c8dbddd6c5814e to your computer and use it in GitHub Desktop.
Save tigershen23/738e28a248810f98f3c8dbddd6c5814e to your computer and use it in GitHub Desktop.
def guide(data):
alphas = pyro.param('alphas', torch.tensor(6.).expand(3), constraint=constraints.positive)
betas = pyro.param('betas', torch.tensor(10.).expand(3), constraint=constraints.positive)
pyro.sample('pay_probs', dist.Beta(alphas, betas).independent(1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment