Enumeration

Hi,

I do not really understand enumeration within Pyro. Is it simply that enumeration is used rather than sampling? I am pretty sure enumeration is over a discrete set of cases. Could you please provide a clear example, or a link to one, which makes it clear, and demonstrates the use of pyro with and without enumeration? I am sorry if this has been answered previously. Thank you.

Gordon

I’m not sure I understand what you want to know, but enumeration in Pyro means enumerating over possible values of discrete random variables instead of sampling one value randomly while computing the marginal likelihood or ELBO for a model, plus using dynamic programming to perform this computation efficiently. See the hidden Markov model example for a few models using enumeration: pyro/hmm.py at dev · pyro-ppl/pyro · GitHub

Note that enumeration is under active development and still lacking documentation. We’ll include some enumeration tutorials and examples in the next release, which should be coming in a few weeks.