Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained.
Introduction to Machine Learning with Python
Notebooks and code for the book "Introduction to Machine Learning with Python".

About Introduction to Machine Learning with Python
This repository holds the notebooks and supporting code for the book "Introduction to Machine Learning with Python" by Andreas Mueller and Sarah Guido. The notebooks are organized by chapter and cover topics such as supervised and unsupervised learning, representing data and feature engineering, model evaluation and improvement, algorithm chains and pipelines, and working with text data. It also includes mglearn, a library of helper functions for creating figures and datasets.
The code targets the stable version of scikit-learn at the time of writing, 0.20.0, though most of the book can be used with earlier versions if imports from model_selection are adjusted. Setup instructions cover conda and pip, with additional packages needed for graphviz-based visualizations and for the text-processing chapter. All datasets are included except aclImdb, which must be downloaded separately. The repository states that it does not hold the "master notebooks," and directs book errata to the O'Reilly website.
Key features
- Chapter notebooks covering supervised and unsupervised learning, feature engineering, and pipelines
- mglearn helper library for creating figures and datasets
- All datasets bundled except aclImdb, downloaded separately
- Setup commands for both conda and pip environments
- Text chapter requires nltk, spaCy and the English language model
- Notes on scikit-learn 0.20.0 and adjustments for earlier versions
- Ships the datasets used in the book, apart from aclImdb, which is linked separately
- Provides conda and pip installation commands plus platform notes for graphviz
- Documents first-print errata and a renamed plotting function
- Repository does not hold the master notebooks, so book errata are directed to the O'Reilly website
- Graphviz installation on Windows is described as tricky, with conda or Anaconda recommended
- Running the code requires a Python environment with numpy, scipy, scikit-learn, matplotlib, pandas and pillow
Introduction to Machine Learning with Python at a glance
- Category
- Education & Learning › AI Learning & Guides
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Not stated
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
Introduction to Machine Learning with Python alternatives
Tools and sites you could use instead, ranked by how closely they match.
This Coursera course teaches supervised machine learning, regression, and classification with Python.
The Hundred-Page Language Models Book teaches machine learning foundations, transformers, and large language models.
This repository provides a tutorial implementation of AutoML for batch and online learning.
Machine Learning Mastery shares guidance for developers learning to apply machine learning.
Normconf is the tech conference about all the stuff that matters in data and machine learning, but doesn.
Popular in AI Learning & Guides
Well-known listings from the same topic.
Introduction to Machine Learning with Python FAQ
Which version of scikit-learn does the code require?
How do I fix "ImportError: No module named mglearn"?
Where should errata be submitted?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.











