[FR]: Example of Predictive with MCMC sampling
See original GitHub issueThere are currently no examples in the docs and tutorials of Predictive
being used in MCMC sampling. Given its importance in returning deterministic values of interest from models, it would probably be useful for users to be able to see how they are used.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Posterior predictive sampling and other post-MCMC use of ...
With posterior predictive sampling, we need to simulate new data values, once for each posterior sample. These samples can then be compared ...
Read more >Utilizing Predictive and Deterministic with MCMC and SVI - Pyro
In this short tutorial we'll see how to use deterministic statements inside a model and inspect its samples with Predictive class. Additionally a...
Read more >Predictive Inference Based on Markov Chain Monte ... - arXiv
A generic Markov chain Monte Carlo (MCMC) algorithm designed to sample from F0 can be sketched as follows. • Fix θ0 ∈ Θ...
Read more >Approximate Inference using MCMC
We obtain dependent samples drawn approximately from π(z) by simulating a Markov chain for some time. Ergodicity: There exists K, for any starting...
Read more >Sampling from the posterior predictive or computing it for ...
Hi, I have some questions regarding making predictions for new data. How are Monte Carlo approximation to the posterior predictive and sampling from...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @fritzo! Sorry for the delay and thank you for a guidance!
I did a short (draft with possible errors and misunderstanding) notebook in a “tutorial” way that utilizes
deterministic
,Predictive
andMCMC
with the model you provided. But it’s pretty short and it repeats content from existing tutorials so I don’t think it’s worth it. (However writing it was a great way to familiarize myself with the library!)I can search for another issue in
pyro
ornumpyro
or continue this notebook according to your tips if you consider it worthwhile. What do you think?Links to the notebook: https://nbviewer.jupyter.org/gist/mtsokol/fe00f78bb0b925f986d241622c2ec019 https://gist.github.com/mtsokol/fe00f78bb0b925f986d241622c2ec019
(I focused on explaining
deterministic
,rate
variable andGammaPoisson
distribution)Hi! Is it open as a good-first-issue? If yes then I would like to try it. I haven’t used
pyro
(only TFP) so I would be grateful if you could point out which examples from http://pyro.ai/examples I can refer to and follow while learning and writing.