Cover of Understanding Machine Learning

Understanding Machine Learning

From Theory to Algorithms

by Shai Shalev-Shwartz, Shai Ben-David · first published 2014

18mentions
12recommended by
16HN commenters
2014–2023first – last mentioned

75% recommend25% neutral

Why HN recommends it

Rigorous theory-first treatment of machine learning balancing statistical and computational learning theory with algorithms; suits readers with strong math backgrounds who want the foundations, not a practical toolkit.

Summarised by Claude from recommending comments

"Machine learning is one of the fastest growing areas of computer science, with far-reaching applications. The aim of this textbook is to introduce machine learning, and the algorithmic paradigms it offers, in a principled way. The book provides an extensive theoretical account of the fundamental ideas underlying machine learning and the mathematical derivations that transform these principles into practical algorithms. Following a presentation of the basics of the field, the book covers a wide array of central topics that have not been addressed by previous textbooks. These include a discussi

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

40 2007: 0 mentions2008: 0 mentions2009: 0 mentions2010: 0 mentions2011: 0 mentions2012: 0 mentions2013: 0 mentions2014: 1 mention2015: 2 mentions2016: 0 mentions2017: 4 mentions2018: 2 mentions2019: 0 mentions2020: 0 mentions2021: 4 mentions2022: 3 mentions2023: 1 mention2024: 0 mentions2025: 0 mentions2026: 0 mentions200720172026

What Hacker News says

  • hgoury · Feb 12, 2021 · Recommends

    I really enjoyed Ben-David (and Shalev-Schwartz)'s book "Understanding machine learning". It's essentially about theory though, not "learn all about machine learning in torchsorflow in 10 days".

    on “Mathematician Solves Sensitivity Conjecture in Two Pages (2019)” ↗
  • vkhuc · Jul 22, 2014 · Recommends

    I skimmed over Mohri's book and I think the topics it covers are quite narrow. For mathematical foundations of ML, I would recommend the book "Understanding Machine Learning: From Theory to Algorithms" by Shai Shalev-Shwartz. A brief version of the book is available to download on the author's website: http://www.cs.huji.ac.il/~shais/Handouts.pdf

    on “Level-Up Your Machine Learning” ↗
  • eli_gottlieb · May 8, 2015 · Recommends

    I recommend Understanding Machine Learning for a textbook, as I rather enjoyed a class using it. http://www.cambridge.org/al/academic/subjects/computer-scien...

    on “Ask HN: How do I go about learning machine learning?” ↗
  • stochastic_monk · Nov 13, 2017 · Recommends

    …Theory, Convex Optimization Algorithms. Nesterov - Lecture Notes (http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.693...) Statistical/Theoretical: Shai Shalev-Schwartz & Shai Ben-David's Understanding Machine Learning (http://www.cs.huji.ac.il/~shais/UnderstandingMachineLearning...) Mohri's Foundations of Machine Learning (https://cs.nyu.edu/~mohri/mlbook/) The two above courses could share SSS's Online Learning…

    on “Confession as an AI researcher; seeking advice” ↗
  • kthejoker2 · Jan 25, 2021 · Recommends

    …typically recommend User Story Mapping by Jeff Patton and Making Things Happen by Scott Berkun, which are both excellent how-tos with great examples to build on. If you're strong in math, I recommend Understanding Machine Learning from Theory to Algorithm by Shalev-Shwartz and Ben-David, as it has all the mathematics for ML and actually has some pseudocode for implementation which helps bridge the gap into actual software development…

    on “The Hundred-Page Machine Learning Book” ↗
  • srean · Apr 11, 2017 · Recommends

    …a (mostly discrete) set of random variables and draw inferences from them. So this is about smart and efficient ways to marginalize and condition and compress. Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning From Theory to Algorithms, 2014 This is also a great book. You will see a lot of KTC here but mostly within the framework of convexity and duality.

    on “Kenneth Arrow and the golden age of economic theory” ↗
  • stochastic_monk · Apr 4, 2018 · Recommends

    I recommend Shai Shalev-Schwartz and Shai Ben-David's Understanding Machine Learning: From Theory to Algorithms [0]. I've also used and found Mohri's Foundations of Machine Learning quite insightful [1]. Usually, between the two books, at least one's proof is easy to follow. Get both…

    on “Book: Mathematics for Machine Learning” ↗
  • PAClearner · Aug 18, 2018 · Recommends

    …areas of mathematics to do theory in ML (and to do ML more generally!) -probability/concentration/hoeffding bounds [the PAC model] [Key] -linear algebra [key] -optimization [key] for books -understanding machine learning by shai ben david This book is nice since it really balances theory with a more practical understanding. -An Introduction to Computational Learning Theory by kearns is a classic [low priority]. this…

    on “Dear Academia, I loved you, but I’m leaving you (2014)” ↗
  • pa7x1 · Apr 11, 2022 · Recommends

    If you are looking to have a mathematical understanding of the field then I really enjoyed "Understanding Machine Learning: From Theory to Algorithms" by Shalev-Shwartz and Ben-David.

    on “The Mathematics of Artificial Intelligence (2022)” ↗
  • adg001 · Jan 9, 2023 · Recommends

    I have not seen mentioned so far in this thread the following book, which I can't recommend more highly: Understanding Machine Learning: From Theory To Algorithms – Shai Shalev-Shwartz

    on “Ask HN: What are the foundational texts for learning about AI/ML/NN?” ↗
  • plafl · Apr 11, 2022 · Recommends

    …that other ML approaches are computational statistics. The goalpost for AI keeps moving. If you are truly interested in the math of AI I think PAC Bayes learning is more appropriate and your book is Understanding Machine Learning [1] (not an easy read). A more gentle intro would be Learning From Data [2]. If someone recommends a book/paper it would be awesome, I'm always on the look. [1] https://www.cs.huji.ac.il/w~shais/UnderstandingMachineLearni... [2]…

    on “The Mathematics of Artificial Intelligence (2022)” ↗
  • reader5000 · Nov 19, 2015 · Recommends

    Having read significant chunks of both ESL and Understanding Machine Learning (albeit UML much more recently) I would argue that for many readers UML is superior. ESL pays short shrift to the computational complexity of learning whereas UML explicitly handles both statistical…

    on “Understanding Machine Learning: From Theory to Algorithms (2014)” ↗
  • jackpirate · Aug 18, 2017 · Recommends

    Yes, they use what's called the VC-dimension. Chapter 20 of the book Understanding Machine Learning (available for free online http://www.cs.huji.ac.il/~shais/UnderstandingMachineLearning...) has a good introduction to the basics of this theory. The short story is that VC dimension describes "worst…

    on “Neural Nets Can Learn Function Type Signatures from Binaries [pdf]” ↗
  • graycat · Apr 11, 2017 · Mentions

    …Glivenko Cantelli. In Kevin P. Murphy, Machine Learning: A Probabilistic Perspective, ISBN 978-0-262-01802-9, MIT Press, 2012. I saw no mention of Vapnik. In Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning From Theory to Algorithms, 2014. I see Vapnik, V. (1992), Principles of risk minimization for learning theory, in J. E. Moody, S. J. Hanson & R. P. Lippmann, eds, `Advances in Neural Information Processing Systems…

    on “Kenneth Arrow and the golden age of economic theory” ↗
  • jriot · Jan 25, 2021 · Mentions

    …Bitcoin Standard: The Decentralized Alternative to Central Banking by Saifedean Ammous Financial Shenanigans by Howard M. Schilit Up next: Life and Fate by Vasily Grossman These Truths by Jill Lepore Understanding Machine Learning: From Theory to Algorithms by Shalev Shwartz and Ben David

    on “Ask HN: Which book do you want to read next?” ↗

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help