probml/pyprobml

Python code for "Probabilistic Machine learning" book by Kevin Murphy

What it solves

This project provides a comprehensive collection of Python code designed to reproduce every figure found in the textbooks Probabilistic Machine Learning: An Introduction and Probabilistic Machine Learning: Advanced Topics. It serves as a practical, hands-on companion for readers of these books to explore machine learning concepts through code.

How it works

The repository contains a large library of Jupyter notebooks organized by book chapter. These notebooks utilize standard Python data science libraries like NumPy, SciPy, and Matplotlib, alongside specialized machine learning frameworks including JAX, TensorFlow 2, and PyTorch. Users can run these notebooks locally or via cloud platforms like Google Colab.

Who it’s for

It is intended for students, researchers, and practitioners who are studying probabilistic machine learning and want to see the mathematical concepts from the associated textbooks implemented in functional code.

Highlights

  • Reproducible code for all figures in both volumes of the Probabilistic Machine Learning book series.
  • Extensive library of Jupyter notebooks categorized by chapter.
  • Support for major machine learning frameworks including JAX, TensorFlow, and PyTorch.
  • Flexible execution options, including local environments and cloud-based platforms like Google Colab or Lightning AI.

Related

  • Project
  • Project
  • Project
  • Project