Which machine learning book to read first

Pick a first book by your background, from code first to maths first.

Which machine learning book to read first
By Roger Doss Robots and Learning

We may earn a commission from these links.

Which machine learning book to read first depends on your background. If you code but have little maths, start with a hands on book such as Hands-On Machine Learning. If you want the ideas without code, start with Why Machines Learn. If you are comfortable with maths and want depth, go to Deep Learning. If the maths is the gap, go to Mathematics for Machine Learning. Match the book to how you learn, and you will finish it.

If you are a programmer who wants to build things

Start with a book that teaches by running code. Hands-On Machine Learning by Aurelien Geron walks through real projects with Python tools such as scikit-learn and PyTorch, and it explains the ideas as you go.

Hands-On Machine Learning with Scikit-Learn and PyTorch

A practical book that walks you through building machine learning systems with two of the most popular Python tools.

Product information

Product Review Score

4.51 out of 5 stars

(168)

Introduction to Machine Learning with Python is shorter and gentler, and it suits a reader who wants to learn the scikit-learn workflow before going deeper.

Introduction to Machine Learning with Python: A Guide for Data Scientists

A hands-on book that walks you through machine learning using Python and the scikit-learn library, step by step.

Product information

Product Review Score

4.88 out of 5 stars

(50)

If you want the ideas first

Why Machines Learn by Anil Ananthaswamy tells the story of how modern AI works, with the maths explained in plain language. It is a good choice if you want to understand the field before you write any code.

Why Machines Learn: The Elegant Math Behind Modern AI

A book that walks through the math behind modern AI in a way that makes sense even if numbers aren't your favorite thing.

Product information

Product Review Score

4.6 out of 5 stars

(40)

The Hundred-Page Machine Learning Book by Andriy Burkov covers the main ideas in a short, dense text. It suits someone who wants a map of the field in one weekend.

The Hundred-Page Machine Learning Book

A short, plain-English primer on machine learning that gets you up to speed fast without drowning you in math.

Product information

Product Review Score

4.99 out of 5 stars

(48)

If you struggle with the maths

A lot of machine learning stalls on linear algebra, calculus and probability. Mathematics for Machine Learning teaches those parts with machine learning in mind, so each idea has a reason to be there.

Mathematics for Machine Learning

A book that covers the math behind machine learning so the algorithms make more sense to you.

Product information

Product Review Score

4.16 out of 5 stars

(128)

Illustrated and plain English books also help. The StatQuest guide uses pictures and small steps to explain statistics and machine learning ideas.

The StatQuest Illustrated Guide To Machine Learning

A picture-heavy book that walks you through machine learning ideas one simple step at a time.

Product information

Product Review Score

4.6 out of 5 stars

(142)

If you are a complete beginner

Machine Learning for Absolute Beginners is a gentle introduction that avoids heavy notation and builds a first picture of what a model is, what training means and where the data goes.

Machine Learning for Absolute Beginners, Third Edition

A plain English book that walks you through machine learning from scratch, with no heavy maths needed to get started.

Product information

Product Review Score

4.31 out of 5 stars

(217)

If you want depth

Deep Learning by Goodfellow, Bengio and Courville is the standard text on neural networks. It is heavy on maths and best after you have some experience.

Deep Learning by Goodfellow, Bengio and Courville

A hardcover textbook from the Adaptive Computation and Machine Learning series, written in English for readers who want the theory behind modern AI.

Product information

Product Review Score

4.24 out of 5 stars

(57)

Reinforcement Learning by Sutton and Barto is the classic book on learning from rewards, and it applies directly to robots and games.

Reinforcement Learning: An Introduction, Second Edition

A standard textbook for anyone who wants to understand how machines learn from trial and error.

Product information

Product Review Score

4.13 out of 5 stars

(175)

If you want to understand language models

Build a Large Language Model From Scratch by Sebastian Raschka walks you through building a small version of the models behind modern chat tools, one piece at a time. It suits readers who already know Python.

Build a Large Language Model (From Scratch)

A hands-on book that walks you through coding a working large language model one step at a time.

Product information

Product Review Score

4.4 out of 5 stars

(107)

If you want to ship models in real life

Designing Machine Learning Systems by Chip Huyen is about the work around the model, such as data, monitoring and deployment. It is a strong second book once you know the basics.

Designing Machine Learning Systems: Production-Ready Applications Guide

A practical book on building machine learning systems that actually hold up once real users and real data show up.

Product information

Product Review Score

4.52 out of 5 stars

(159)

Editions and free extras

Machine learning tools change fast, so check the edition date and the tools the book uses. A book that teaches an old library still teaches the ideas, but the code may need changes to run today. Many authors publish code on a public site, and some publish the book text online, so look for a companion page before you buy. Use it to see whether the style suits you, and to download the example files so you do not have to type long listings by hand.

What to read after the first book

Pick the second book by the gap you notice. If your models work but you do not know why, go to a maths or theory book. If you understand the theory but struggle to build, go to a project book. If you can build but cannot ship, read about systems and deployment. A short plan of two or three books, read in that order, is better than owning a shelf of unread ones.

How to read a technical book

Type the code in rather than pasting it, and run it on a small dataset you care about. Stop after each chapter and explain the main idea out loud in your own words. If a chapter loses you, go back one level, to a simpler book or a video, and return later. Technical books reward a steady pace more than a heroic weekend.

Pair it with a project

A book works best next to a small project. A board such as a Raspberry Pi gives you a place to run what you read. See our guide to Raspberry Pi 5 and Jetson boards to pick one, or follow our robot project guide for a first build.

Related in our departments

Hands-On Machine Learning with Scikit-Learn and PyTorch

Hands-On ML Book

O'reilly

Product Review Score

4.51 out of 5 stars

(168)
Introduction to Machine Learning with Python: A Guide for Data Scientists

ML with Python Guide

O'reilly

Product Review Score

4.88 out of 5 stars

(50)
Why Machines Learn: The Elegant Math Behind Modern AI

Why Machines Learn

Product Review Score

4.6 out of 5 stars

(40)
The Hundred-Page Machine Learning Book

Hundred-Page ML Book

Product Review Score

4.99 out of 5 stars

(48)
Mathematics for Machine Learning

Mathematics for Machine Learning

Product Review Score

4.16 out of 5 stars

(128)
The StatQuest Illustrated Guide To Machine Learning

StatQuest Machine Learning Guide

Product Review Score

4.6 out of 5 stars

(142)
Machine Learning for Absolute Beginners, Third Edition

ML for Absolute Beginners

Product Review Score

4.31 out of 5 stars

(217)
Deep Learning by Goodfellow, Bengio and Courville

Deep Learning Book

Mit Press

Product Review Score

4.24 out of 5 stars

(57)

Share this article