Machine Learning Visualized

Jupyter notebooks implement and derive machine learning algorithms from first principles using NumPy.

github.com/gavinkhung/machine-learning-visuali…
Machine Learning Visualized homepage screenshot

About Machine Learning Visualized

Machine Learning Visualized is an open-source Jupyter Book that implements and mathematically derives machine learning algorithms from first principles, using NumPy. Each notebook produces a visualization of the algorithm during training, showing it converge toward its optimal weights. The site also includes interactive notebooks built with Marimo that show how weights affect loss functions.

This repository holds only the configuration and build code for the book. The notebooks themselves live in separate repositories, one per algorithm, and a shell script downloads them before the book is built. The listed algorithms are neural networks, autoencoders, logistic regression, perceptrons, principal component analysis, k-means, and gradient descent.

Key features

  • Jupyter Notebooks that implement and derive ML algorithms from first principles
  • Marimo interactive notebooks showing how weights affect loss functions
  • Visualizations of each algorithm's training phase converging to optimal weights
  • Shell script that downloads notebooks from separate per-algorithm repositories
  • Local book build through the jupyter-book CLI, Docker Compose, or Docker
  • Instructions for building an EPUB version of the combined notebooks
Best for: Learners who want to understand how machine learning algorithms work by following their derivations and watching them train, using Python and NumPy.
Good for
  • Released under the MIT license
  • Each algorithm is both implemented and mathematically derived
  • Training is shown as a visualization rather than only as final results
Watch out for
  • The notebooks are not stored in this repository and must be downloaded before the book can be built
  • Building the book locally requires installing jupyter-book or Docker
  • The EPUB build instructions list MacTeX as a macOS installation step

Machine Learning Visualized at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

Machine Learning Visualized alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Learn to Code

Well-known listings from the same topic.

All 387

Machine Learning Visualized FAQ

Where are the notebooks stored?
They are not in this repository. Each algorithm has its own repository, and a shell script named download_notebooks.sh downloads the relevant notebooks before the book is built.
Which algorithms are covered?
The repository links to notebooks for neural networks, autoencoders, logistic regression, perceptrons, principal component analysis, k-means, and gradient descent.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing