What is sample site?

I’m beginner about pyro.
So, When I read documents about pyro, The phrase “sample site” appears, but I don’t know what the words mean.

I would be grad to know.

A sample site is the part of your model that samples are drawn from. In your model, you will usually have some line like pyro.sample("some_name", some_distribution) to denote a sample site. You can also mark this site as observed (so that you can fit your model to some data) by using the obs keyword like pyro.sample("some_name", some_distribution, obs=data)

1 Like