Interpretable Machine Learning: A Guide for Making Black Box Models Explainable by Christoph Molnar has become a go-to resource for making machine learning models and their decisions interpretable. The book addresses a practical problem: computers usually don’t explain their predictions, which can cause trust issues and undetected bugs in products, processes, and research.
Readers first explore core concepts of interpretability before moving to simple, interpretable models such as decision trees and linear regression. The book’s main focus is on model-agnostic methods for interpreting black box models. Some of these methods, including LIME and Shapley values, explain individual predictions. Others, such as permutation feature importance and accumulated local effects, provide insights about general relations between features and predictions. The book also presents methods specific to deep neural networks.
All interpretation methods are explained in depth and discussed critically. Readers learn how each method works, what its strengths and weaknesses are, and how to interpret its results. The goal is to enable practitioners, data scientists, and statisticians to select and correctly apply the interpretation method most suitable for their machine learning application.
Why the book was written: Molnar began the project as a side venture while working as a statistician in clinical research. He expected plenty of resources on interpreting machine learning models but found only scattered research papers and blog posts, with no comprehensive guide. This motivated him to create the resource he wished existed—to deepen his own understanding and share insights with others. Today the book is cited thousands of times, used in students’ theses, adopted in instructors’ classes, and relied on by data scientists in industry. It has also been the foundation of Molnar’s own career, inspiring a PhD on interpretable machine learning and later encouraging him to become a self-employed writer, educator, and consultant.
Who the book is for: practitioners looking for an overview of techniques to make machine learning models more interpretable, as well as students, teachers, researchers, and anyone interested in the topic. A basic understanding of machine learning and university-level math helps with the theory, but the intuitive explanations at the start of each chapter should be accessible without math knowledge.
What’s new in the third edition
The third edition is both a small and a big update. It’s small in that only two new method chapters were added—LOFO and Ceteris Paribus—and two introductory chapters: Methods Overview and Goals of Interpretability. It’s bigger in that the introduction part was reorganized to be leaner yet more insightful. Data examples received more depth, including studying correlations and more nuanced analysis. The cancer dataset was replaced with the more accessible Palmer penguin dataset. To make the book more practical, tips and warning boxes were introduced to help readers interpret machine learning models the right way.
A huge change in the third edition was cleaning up the book’s repository and rendering it with Quarto instead of bookdown. For readers, this is only visible in the appearance of the web version, but it also means the book is much easier to maintain long-term. Many small fixes are documented in the book repository’s README under “Changelog”.
Key specs that determine whether a cheap card is actually usable for LLM inference: VRAM size, memory bandwidth, and the tokens-per-second rate the card can sustain for the target model. Every byte of free RAM becomes expert cache. Results depend heavily on free RAM. Closing memory-hungry apps and keeping the Mac plugged in—Low Power Mode halves the speed—are practical tips for maximizing throughput on limited hardware.