probmods / webppl

Probabilistic programming for the web
http://webppl.org
Other
613 stars 89 forks source link

Attach more metadata to distributions (e.g., sample size) #608

Open longouyang opened 8 years ago

longouyang commented 8 years ago

Outlining some notes from an in-person conversation with Andreas:

null-a commented 7 years ago

Number of samples was added by #654.

mhtess commented 7 years ago

To add to this. In RWebPPL, the user can either pass in the inference algorithm options object from R, or just write it in the WebPPL program as we would normally do. When it's passed in from R, RWebPPL is able to attach the meta-data directly to the posterior object (useful, e.g., in the ggmcmc package). When inference is specified in WebPPL, however, we don't have access to the meta-data. Concretely, what we currently lack is:

If this were accessible in the distributions object, that would be helpful