#123123rd of 171 in Learning and cookbooks

machine-learning-visualized

Jupyter Book deriving and animating classic ML algorithms from first principles

Stars
2.1k
License
MIT
Last commit
Aug 2026
Language
TeX
Stars, last 30 weeks+953
28 Apr 2026: 1,178 stars5 May 2026: 1,185 stars12 May 2026: 1,382 stars19 May 2026: 1,500 stars26 May 2026: 1,509 stars2 Jun 2026: 1,516 stars9 Jun 2026: 1,546 stars16 Jun 2026: 1,566 stars23 Jun 2026: 1,586 stars30 Jun 2026: 1,600 stars7 Jul 2026: 1,674 stars14 Jul 2026: 1,678 stars21 Jul 2026: 1,730 stars28 Jul 2026: 1,737 stars4 Aug 2026: 1,738 stars11 Aug 2026: 1,811 stars18 Aug 2026: 1,907 stars25 Aug 2026: 1,919 stars1 Sept 2026: 1,926 stars8 Sept 2026: 1,946 stars15 Sept 2026: 1,956 stars22 Sept 2026: 1,965 stars29 Sept 2026: 1,971 stars6 Oct 2026: 2,030 stars13 Oct 2026: 2,062 stars20 Oct 2026: 2,072 stars27 Oct 2026: 2,086 stars3 Nov 2026: 2,091 stars10 Nov 2026: 2,097 stars17 Nov 2026: 2,109 stars24 Nov 2026: 2,131 stars

1,178 on 28 Apr 20262,131 on 24 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Build configuration for the ml-visualized.com Jupyter Book, which collects notebooks that derive ML algorithms mathematically and animate training until the weights converge. Covered algorithms include neural networks, autoencoders, logistic regression, perceptron, PCA, K-means and gradient descent. Marimo interactive notebooks show how weights affect loss functions. The notebooks live in separate repos and are fetched by a shell script before building.

Who it is for: Students and educators learning ML math and training dynamics visually

Strengths

  • Each notebook pairs a math derivation with an animation of training to convergence
  • Marimo interactive notebooks let you vary weights and watch the loss change
  • Hosted site at ml-visualized.com, so nothing needs to be installed to read it
  • Builds locally via jupyter-book CLI, Docker or Docker Compose; EPUB export documented

Weaknesses

  • Notebooks are not in this repo; a download script must pull them from seven others
  • Covers only seven classic algorithms; no transformers or modern LLM topics listed
  • EPUB build needs MacTeX via Homebrew, so the documented path is macOS-oriented
  • Repo is build config only, so there is little runnable algorithm code here

What it needs

  • no GPU
  • Docker + Compose
  • Needs Jupyter Book, Marimo, Docker (optional), MacTeX (EPUB build only)

Also in Learning and cookbooks

See all 171
Also in Learning and cookbooks
RankProjectScore
#121pyprobmlNotebooks that reproduce figures from the Probabilistic Machine Learning books7.2k starsMIT36 out of 100
#122machine-learning-refinedTextbook notebooks for learning machine learning by implementing it from scratch2.3k starscustom license36 out of 100
#124the-little-book-of-ml-metricsOpen-source handbook explaining ML metrics, from accuracy to obscure ones1k starsno license36 out of 100
#125context-engineeringHandbook and code examples for designing what goes into an LLM's context9.3k starsMIT35 out of 100
#126transformer-explainerInteractive browser visualization of how GPT-2 predicts the next token Live demo ↗ (opens in a new tab)9.2k starsMIT35 out of 100