Sahin Boydas
Random theme
Select theme
Understanding Machine Learning: From Theory to Algorithms cover

Understanding Machine Learning: From Theory to Algorithms, the Book on Why Learning Works

by Shai Shalev-Shwartz & Shai Ben-David · Cambridge University Press, 2014

By Sahin Boydas✓ Updated December 2026On 1 book list

Shai Shalev-Shwartz and Shai Ben-David published Understanding Machine Learning: From Theory to Algorithms with Cambridge University Press in 2014. Shalev-Shwartz is a professor at the Hebrew University of Jerusalem and has also served as chief technology officer of Mobileye. Ben-David is a professor at the University of Waterloo.

Part one sets up learning theory: the PAC learning model, uniform convergence, VC dimension, the bias-complexity trade-off and nonuniform learnability. Later parts turn that theory into algorithms, covering linear predictors, boosting, model selection, convex learning problems, regularization and stability, stochastic gradient descent, support vector machines, kernels and neural networks. The final part treats advanced theory.

Researchers recommend it because it answers a question most books skip. When will a model trained on samples work on new data, and how many samples does that take? The authors give the PDF away.

How Tech People Read It

Bernhard Schölkopf

Schölkopf, a founder of kernel methods and director at the Max Planck Institute for Intelligent Systems, praises the book for joining rigorous theory with practical methods. Kernel machines came from that marriage of theory and practice. He sees the same balance here.

Avrim Blum

Blum, a learning theorist then at Carnegie Mellon, calls it a timely text on the mathematical foundations, both deep and broad. His field is the one the book teaches. Coming from him, the endorsement says the theory is presented correctly and completely.

Graduate students in machine learning

Courses on learning theory often use this book. Its first chapters build every concept from definitions, with exercises that develop proof skills. Students who finish it can read theory papers in NeurIPS and COLT proceedings.

The Main Ideas

  • PAC learning defines what it means for an algorithm to learn from a finite sample.
  • The VC dimension measures a hypothesis class's capacity and determines how many samples are needed.
  • No single algorithm learns well on every problem, a result known as the no-free-lunch theorem.
  • Convexity and stability explain why methods such as regularized loss minimization generalize.
  • Stochastic gradient descent can be analyzed as a learning algorithm in its own right.

Who Should Read It

Read it if you want to know why algorithms generalize, and you are comfortable with proofs, probability and linear algebra. It suits graduate students and researchers. Skip it if you are a practitioner who mainly needs to build models; a practical book or An Introduction to Statistical Learning serves that better.

The Book

Cover of Understanding Machine Learning: From Theory to Algorithms by Shai Shalev-Shwartz & Shai Ben-David

Book 01 Advanced

Understanding Machine Learning: From Theory to Algorithms

by Shai Shalev-Shwartz & Shai Ben-David

Publisher
Cambridge University Press, 2014
Goodreads
4.23 of 5 from 136 ratings

Why read it

The theory of machine learning and the algorithms that follow from it: PAC learning, VC dimension, the bias-complexity trade-off, the computational complexity of learning, convexity and stability, stochastic gradient descent, support vector machines, kernels, boosting and neural networks. Written for advanced undergraduates and graduate students. Read it when you want to know why an algorithm generalises, not only how to run it. The authors give the PDF away.

What people said

  • “This elegant book covers both rigorous theory and practical methods of machine learning.”

    Bernhard Schölkopf, Max Planck Institute for Intelligent Systems, on Cambridge's page cambridge.org ↗

  • “This is a timely text on the mathematical foundations of machine learning, providing a treatment that is both deep and broad”

    Avrim Blum, Carnegie Mellon University, on Cambridge's page cambridge.org ↗

Watch

Machine Learning course- Shai Ben-David: Lecture 1Understanding Machine Learning - Shai Ben-David (UWaterloo Winter 2015)The first lecture of co-author Shai Ben-David's machine learning course at the University of Waterloo.

On These Book Lists

Frequently Asked Questions

Is Understanding Machine Learning free?

Yes. The authors provide a free PDF. Cambridge University Press sells the printed book.

Is Understanding Machine Learning hard?

Yes. It is a theory text with proofs and assumes comfort with probability, linear algebra and mathematical reasoning.

What is PAC learning?

Probably approximately correct learning, a framework that defines when an algorithm can learn a good predictor from a finite sample with high probability. The book builds its theory on it.

Does Understanding Machine Learning cover deep learning?

It has a chapter on neural networks, mostly from a theoretical angle. It does not cover modern architectures in detail.

Who wrote Understanding Machine Learning?

Shai Shalev-Shwartz of the Hebrew University of Jerusalem and Shai Ben-David of the University of Waterloo.