Skip to content

Tutorials𝞡

We list here a view small examples, that are easy to run locally on a CPU, to show how to use posteriors:

Additionally, we provide more in depth examples in the examples directory on GitHub, many of which use larger models that require a GPU to run:

  • yelp: Compares a host of posteriors methods (highlighting the easy exchangeability) on a sentiment analysis task adapted from the Hugging Face tutorial.

  • imdb: Investigates cold posterior effect for a range of approximate Bayesian methods with a CNN-LSTM model on IMDB data, with some interesting takeaways.

  • pyro_pima_indians_sghmc: An accessible notebook demonstrating the use of posteriors with a pyro-defined Bayesian logistic regression model, as well as convergence diagnostics from pyro.