explaingit

ageron/handson-ml

Analysis updated 2026-05-18

25,628Jupyter NotebookAudience · developerComplexity · 2/5LicenseSetup · moderate

TLDR

Jupyter Notebooks with machine learning code and exercises from the first edition of the O'Reilly book 'Hands-on Machine Learning.' Now deprecated, use the third edition instead.

Mindmap

mindmap
  root((repo))
    What it does
      Chapter-by-chapter notebooks
      ML fundamentals in Python
      Book exercise solutions
    How to run
      Google Colaboratory
      Binder online
      Local Anaconda setup
    Tech stack
      Python
      Scikit-Learn
      TensorFlow
      Jupyter Notebooks
    Audience
      Book readers
      ML learners
      Deprecated resource
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Work through the first edition of 'Hands-on Machine Learning' with runnable code examples.

USE CASE 2

Learn machine learning fundamentals in Python using Scikit-Learn and TensorFlow.

USE CASE 3

Run interactive notebooks online via Google Colaboratory or Binder without local setup.

What is it built with?

PythonJupyter NotebookScikit-LearnTensorFlowAnaconda

How does it compare?

ageron/handson-mlshap/shaphandsonllm/hands-on-large-language-models
Stars25,62825,38826,002
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Setup difficultymoderatemoderateeasy
Complexity2/53/53/5
Audiencedeveloperdatadeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Anaconda/conda environment setup and TensorFlow/Scikit-Learn installation before notebooks run.

Use freely for any purpose including commercial. Keep the notice and disclose changes to the patent grant.

In plain English

This repository contains the Jupyter Notebook code and exercise solutions from the first edition (2017) of the O'Reilly book "Hands-on Machine Learning with Scikit-Learn and TensorFlow." It is now deprecated, the README points readers to the third edition at a separate repository, and the first edition's code is outdated. The notebooks cover the fundamentals of machine learning in Python, working through concepts and examples from the book chapter by chapter. Jupyter Notebooks are interactive documents where you can read explanations, run code, and see results all in one place, they are a common format for data science and machine learning tutorials. The repo supports running online in Google Colaboratory or Binder without installing anything, or locally using Anaconda (a Python distribution for data science) with TensorFlow. You would only visit this repository if you are following along with the first edition of the book specifically. For anyone starting fresh, the README strongly recommends the third edition instead. The tech stack is Python, Scikit-Learn (a machine learning library), TensorFlow (a deep learning framework), and Jupyter Notebooks.

Copy-paste prompts

Prompt 1
Show me how to set up and run the first notebook from this repo in Google Colab.
Prompt 2
Walk me through the Scikit-Learn examples in these notebooks to understand classification.
Prompt 3
How do I use TensorFlow in these notebooks to build a simple neural network?
Prompt 4
Help me adapt one of these notebook exercises to work with my own dataset.

Frequently asked questions

What is handson-ml?

Jupyter Notebooks with machine learning code and exercises from the first edition of the O'Reilly book 'Hands-on Machine Learning.' Now deprecated, use the third edition instead.

What language is handson-ml written in?

Mainly Jupyter Notebook. The stack also includes Python, Jupyter Notebook, Scikit-Learn.

What license does handson-ml use?

Use freely for any purpose including commercial. Keep the notice and disclose changes to the patent grant.

How hard is handson-ml to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is handson-ml for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub ageron on gitmyhub

Verify against the repo before relying on details.