Sahin Boydas
Random theme
Select theme
Hands-On Machine Learning with Scikit-Learn and PyTorch cover

Hands-On Machine Learning with Scikit-Learn and PyTorch: Géron's Practical Course, Rebuilt

by Aurélien Géron · O'Reilly, 2017

By Sahin Boydas✓ Updated December 2026On 1 book list

Aurélien Géron's Hands-On Machine Learning first came out in 2017 with Scikit-Learn and TensorFlow. Three editions later it had become one of the most used practical ML books. In 2025 O'Reilly published a new version built on Scikit-Learn and PyTorch. Géron previously led YouTube's video classification team at Google.

The book is organized as a course. Part one runs a full project end to end, from fetching data to a deployed model, and then covers the classic methods with Scikit-Learn. Part two builds neural networks in PyTorch: convolutional and recurrent networks, transformers for language and vision, autoencoders, GANs, diffusion models and reinforcement learning. Pretrained models come from Hugging Face.

Engineers recommend it because every idea is paired with running code. The notebooks are free on GitHub and include exercise solutions. The switch to PyTorch matters because most current research and open-source model code uses it.

How Tech People Read It

Software engineers new to ML

The end-to-end project in chapter two is the most cited part of the book. It shows the whole workflow before any theory, so readers see where each later chapter fits. Engineers used to shipping code find that order natural.

Readers of the TensorFlow editions

The 2025 version is a full rewrite. The deep learning half now uses PyTorch throughout and adds transformers, diffusion and Hugging Face. Readers of the third edition can skim part one and focus on the new deep learning chapters.

Self-taught learners

Géron explains with diagrams and small examples, and keeps the maths light. The exercises at the end of each chapter have worked solutions in the notebooks. That makes the book usable without a teacher, which is how most of its readers use it.

The Main Ideas

  • A machine learning project follows a repeatable path from framing the problem to monitoring the model.
  • Classic methods such as linear models, trees and ensembles still solve most tabular problems.
  • Neural networks are built from a few components that PyTorch makes explicit.
  • Transformers now serve both language and vision tasks.
  • Pretrained models and fine-tuning save most teams from training from scratch.

Who Should Read It

Read it if you can program in Python and want one book that takes you from basic models to transformers with working code. It suits engineers, students and analysts. Skip it if you want the statistics behind the methods in depth; pair it with An Introduction to Statistical Learning or a theory text.

The Book

Cover of Hands-On Machine Learning with Scikit-Learn and PyTorch by Aurélien Géron

Book 01 Beginner to intermediate

Hands-On Machine Learning with Scikit-Learn and PyTorch

by Aurélien Géron

Publisher
O'Reilly, 2025 (first published 2017)
Free online
No (the notebooks are free)
Goodreads
4.73 of 5 from 24 ratings

Why read it

Géron's widely used hands-on book, rewritten for PyTorch in 2025. Part one walks through a full project in Scikit-Learn, then classification, linear models, decision trees, ensembles, dimensionality reduction and clustering. Part two builds neural networks in PyTorch: convolutional and recurrent networks, transformers for text and vision, autoencoders, GANs and diffusion, and reinforcement learning, with Hugging Face for pretrained models. Earlier editions used TensorFlow and Keras.

Watch

919: Hopes and Fears of AGI, with All-Time Bestselling ML Author Aurélien GéronSuper Data Science: ML & AI Podcast with Jon KrohnThe author on writing the book and choosing what went into the PyTorch edition.
AI Book Club: Hands-On Machine Learning with Scikit-Learn and PyTorch 📱Sage ElliottA book club discussing this edition's chapters.

On These Book Lists

Frequently Asked Questions

Should I buy the PyTorch or TensorFlow edition of Hands-On Machine Learning?

The PyTorch edition from 2025 if you are starting now. PyTorch dominates research and open-source models, and this edition adds newer topics such as diffusion.

Is Hands-On Machine Learning good for beginners?

Yes, for beginners who already program in Python. It keeps maths light and explains with code and diagrams.

Are the Hands-On Machine Learning notebooks free?

Yes. Géron publishes the code and exercise solutions for the PyTorch edition in a public GitHub repository.

Who is Aurélien Géron?

A machine learning consultant and former lead of YouTube's video classification team at Google. He wrote all editions of Hands-On Machine Learning.

What should I read after Hands-On Machine Learning?

Designing Machine Learning Systems for production work, or a deep learning text such as Understanding Deep Learning for more theory.