question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FR]: Example of Predictive with MCMC sampling

See original GitHub issue

There 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:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
mtsokolcommented, May 7, 2021

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 and MCMC 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 or numpyro 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 and GammaPoisson distribution)

2reactions
mtsokolcommented, Apr 13, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found