ageron/handson-mlp

▲ 10 stars today★ 1,996⑂ 624

A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in Python using Scikit-Learn, PyTorch, and Hugging Face libraries.

About ageron/handson-mlp

ageron/handson-mlp is an open-source project on GitHub, mainly written in Jupyter Notebook. A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in Python using Scikit-Learn, PyTorch It currently holds 1,996 stars and 624 forks with 19 open issues, and was last pushed on 2026-09-03 (repository created 2025-05-10).

Project Overview

AI Homed tracks it on the Today's Trending board, currently at rank #75 with 10 new stars today.

GitHub Repository Details

Repository ageron/handson-mlp · default branch main · size 46581 KB · watchers 23 · source: GitHub REST API and repository README

README

Hands-On Machine Learning with Scikit-Learn and PyTorch

The goal of this project is to teach you the fundamentals of Machine Learning in Python. It contains the example code and solutions to the exercises in the first edition of my new O'Reilly book Hands-on Machine Learning with Scikit-Learn and PyTorch (1st edition):

Note: If you are looking for the notebooks for the TensorFlow/Keras version of this book, check out ageron/handson-ml3.

Quick Start

Want to play with these notebooks online without having to install anything?

⚠ _Colab provides a temporary environment: anything you do will be deleted after a while, so make sure you download any data you care about._

Just want to quickly look at some notebooks, without executing any code?

Want to install this project on your own machine?

Check out the installation instructions.

FAQ

Which Python version should I use?

I recommend Python 3.12. If you follow the installation instructions above, that's the version you will get. Versions 3.10 and 3.11 should work as well, but some libraries are not yet available for 3.13.

I'm getting an error when I call load_housing_data()

If you're getting an HTTP error, make sure you're running the exact same code as in the notebook (copy/paste it if needed). If the problem persists, please check your network configuration. If it's an SSL error, see the next question.

I'm getting an SSL error on MacOSX

You probably need to install the SSL certificates (see this StackOverflow question). If you downloaded Python from the official website, then run /Applications/Python\ 3.12/Install\ Certificates.command in a terminal (change 3.12 to whatever version you installed). If you installed Python using MacPorts, run sudo port install curl-ca-bundle in a terminal.

I've installed this project locally. How do I update it to the latest version?

See INSTALL.md

How do I update my Python libraries to the latest versions, when using Anaconda?

See INSTALL.md

Contributors

I would like to thank everyone who contributed to this project, either by providing useful feedback, filing issues or submitting Pull Requests.

GitHub Stars & Activity

1,996Stars
624Forks
19Open issues
Jupyter NotebookLanguage

GitHub Popularity

GitHub stars1,996
Forks624
Open issues19
Primary languageJupyter Notebook
LicenseApache-2.0
Stars gained today10
Created2025-05-10
Last pushed2026-09-03

Trending History

Daily boardrank #75 · ▲ 10 stars

Related AI Projects

1

microsoft / generative-ai-for-beginners

Jupyter Notebook★ 119,854⑂ 63,097▲ 77 stars
2

anthropics / prompt-eng-interactive-tutorial

Jupyter Notebook★ 38,194⑂ 4,230▲ 24 stars
3

anthropics / courses

Jupyter Notebook★ 22,843⑂ 2,479▲ 7 stars
4

facebookresearch / sam2

Jupyter Notebook★ 19,874⑂ 2,545▲ 12 stars
5

Infrasys-AI / AISystem

Jupyter Notebook★ 17,821⑂ 2,474▲ 16 stars
6

GoogleCloudPlatform / generative-ai

Jupyter Notebook★ 17,713⑂ 4,454▲ 10 stars
7

karpathy / micrograd

Jupyter Notebook★ 17,546⑂ 2,797▲ 20 stars
8

datawhalechina / llm-universe

Jupyter Notebook★ 13,990⑂ 1,415▲ 18 stars

More AI Rankings