-
-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Resamper for interactive prior tuning #3118
Conversation
@@ -92,7 +92,7 @@ | |||
# | |||
# This is also used if you do content translation via gettext catalogs. | |||
# Usually you set "language" from the command line for these cases. | |||
language = None | |||
language = "en" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this silences a new sphinx warning
happy to review but will need a walk-through |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@martinjankowiak sure I'd be happy to walk you through over zoom some evening. I've also added a notebook if you want to run that locally. The algorithm is cute, but the interface seems awkward, lying somewhere between Distributions and models. Advice welcome. |
ok, I've simplified and improved the interface to use a more idiomatic (model,guide) pair. |
notebooks typos:
|
* Implement ResamplingCache * Vectorize for speed * lint * optimization nit * More optimization * Completely vectorize * Generalize to multiple distributions * Add a tutorial * Refactor to use models * Simplified, but introduced a bug 😕 * fix bug * Update tutorial * Implement stable sampling via Gumbel-max trick * Change nomenclature * Update prior_predictive.ipynb Fix colab link * Install pyro-ppl in colab * Address review comments
This implements an importance resampler as a computational aid for interactively tuning prior predictive samples early in ones Bayesian workflow.
Additional work
Tested
new tests complete in <0.1sec on my machine
Open in Colab, you'll need to replace the pip install line with: