Probabilistic Machine Learning: An Introduction

by Kevin Patrick Murphy.
Book cover MIT Press, 2021.

Key links

If you use this book, please be sure to cite

 @book{pml1Book,
 author = "Kevin P. Murphy",
 title = "Probabilistic Machine Learning: An introduction",
 publisher = "MIT Press",
 year = 2021,
 url = "probml.ai"
}

Table of contents


TOC 2021-04-22

Code accompanying the book

When reading the pdf file, you can right click on any link labeled figures.probml.ai/x.y and it will open up Google Colab in a new tab, and jump to the cell for chapter x, figure y. Click on the button labeled 'setup' and it will install any necessary code. (The first time you do this it may take about 30 seconds, but subsequent setups for other cells on this chapter should be faster.) Then click on the cell for the figure and it will run the code to regenerate the figure. There are also some inline links to code in the body of the book, labeled code.probml.ai/foo; these refer to demos that are not associated with any figure. Clicking on these links behaves in a similar way.

The code for each figure is stored in a separate file, either in the scripts directory, or the notebooks directory. In the former case, you can click on the 'show source code' button in colab to open the source code inside the colab editor; you can then make changes (e.g., to the parameters or data), to make sure you understand it. Note, however, that changes to local files will not be saved beyond the current colab session. In the latter case, you can click on the 'show notebook' button, and it will open the source notebook in a new tab, which can be edited in the usual way.

In addition to code linked to from inside the book, there are various forms of supplementary material associated with each chapter, such as additional jupyter notebooks and tutorials.

Endorsements

Acknowledgements

I would like to thank the following people for helping with this book.