Skip to content

Playground for learning NumPyro and porting some examples from MBML

Notifications You must be signed in to change notification settings

bdatko/play_mbml_numpyro

Repository files navigation

Model-Based Machine Learning with NumPyro

I enjoy the book Model-Based Machine Learning, and inspired by Du Phan's port of Statistical Rethinking I decided to play around to port some examples of the code to NumPyro.

Notes

Q: Are there any posts on the Pyro forums about Model-Based Machine Learning?

A: Searching the forums for two keyword phrases finds a total of three posts.

  1. "mbml"
  2. "model based machine learning"

Oct 24, '18 2:28 PM - Model Based Machine Learning Book Chapter 2 Skills example in Pyro- tensor dimension issue

  • The post is very long and I think the original code from OG is not code to emulate, But the post did bring out other authors to contribute to cleaning up the code
  • Need to be careful since pyro was a lot younger and some of the bugs or code might be work aronds
  • fritzo code seems to be something to target
  • The post also has some discussion about tensor shape tutorial notebook, to_event(), event_shape see also this post titled Dependency tracking in Pyro
  • Even though the code snippets are posted there are no repos shared

Jan 3, '19 5:32 PM - Importance sampling and Empirical Margin](https://forum.pyro.ai/t/importance-sampling-and-empirical-margin/627

Feb 17, '19 9:49 AM - Model Based Machine Learning chapter 3, loss oscillating](https://forum.pyro.ai/t/model-based-machine-learning-chapter-3-loss-oscillating/738

  • Has code snippets for chapter 3
  • community seems to show progress with SVI but recommends MCMC

Community members List

Q: Are there any Github repositories outside the Pyro community working on a similar project?

A: Searching via DuckDuckGo and Google I can find one dedicated repository and a mention to a course that teaches out of the MBML book.

  1. DuckDuckGo search: github MBML "pyro" model based machine learning
  2. Google search github MBML "pyro" model based machine learning:

mengqvist/data_analysis_mbml

  • The repo has all the data downloaded but not many examples finished
  • There is a single notebook containing Chapter 1 and Chapter 2
  • Looks like the author couldn't get past Chapter 2 Moving to real data .. I know how you feel 😭

jmontalvo94/mbml-energy-predictor

About

Playground for learning NumPyro and porting some examples from MBML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published