Coding

The programming help sessions are meant to complement the course. Although they are not mandatory, I strongly suggest you attend them. You can find information about location on the main page.

Resources to get you set up:
Version control with Git
Accessing Princeton’s compute clusters
Python for data science cheat sheet

Resources for the programming help sessions below.

Topics Links
Linear Regression with Pytorch Example 1, Example 2
Bayesian Linear Regression with Pyro Example 1, Longer example
Mixture Models GMM, Dirichlet Process MM
Bayesian Neural Networks Pyro Example, Numpyro Example, Blog Post
Stochastic Variational Inference SVI in Pyro
Latent Dirichlet Allocation LDA in Pyro
Variational Autoencoders VAE in Pyro
MCMC with NumPyro Getting Started Example, More Examples
MCMC with Discrete Latent Variables Example
Model Checking with ArviZ ArviZ Examples