Skip to content

Glassbox

Machine learning from the perceptron to the LLM and diffusion models, with nothing hidden. One ordered path for programmers. Every concept is shown, derived, built and tested.

Who it's for

Programmers comfortable with Python who are new to ML and rusty on the math. You finish ready to read, reproduce and extend current research.

Experts teach, the site bridges

The core explanations come from proven sources: Prince’s Understanding Deep Learning, Mathematics for Machine Learning, Karpathy, and Stanford and MIT courses. Each module points to exact sections and timestamps.

See it, derive it, build it, test it

Every concept is shown in an interactive widget, derived by hand, implemented from scratch, and checked by automated tests you can run in the page.

Free to complete

Every required task runs in the browser, on a laptop CPU, or on Kaggle’s free GPUs. Paid compute is always optional.

Every module runs the same five steps. You move on only after the tests and checks pass.

  1. Learn from the named source: exact sections, pages or timestamps.
  2. Bridge and derive. A short bridge note (≤ 400 words, every claim cited) connects the source to the course, then you work the key derivation line by line.
  3. Explore the idea in an interactive widget placed right before the task it prepares you for.
  4. Do the task: implement it from scratch against automated tests, in the page or in your own editor with mlc check.
  5. Check with a short quiz. If you miss it, go back to step 1 for the parts you missed (the one retry loop), then mark the module complete.

53 modules in 8 Parts, about 46 weeks at 15 hours a week. Each Part ends in a capstone.

PartWeeksModulesCapstone
0. Orientation~13—
1. Math for ML~56The gradient checker, plus a PCA image compressor
2. Learning from data~46An MNIST classifier: logistic regression from scratch
3. Neural networks~78Your own tensor autograd library that trains an MLP on MNIST
4. Sequences, attention, transformers~66CS336 Assignment 1
5. LLMs at scale~1212nanochat end to end
6. Generative models and diffusion~78A class-conditional latent flow model, from scratch
7. Doing research~44A public paper reproduction with a write-up
  • All 53 module pages, each with its Learn links.
  • 53 modules are complete (Parts 0, 1, 2, 3, 4, 5, 6, 7): bridge notes, derivations, 63 interactive widgets, tested tasks and capstones.
  • 0 more are fully specified: tasks, tests and widgets are described and ready to build.
  • The site-wide tools: course map, progress dashboard, in-browser code cells and test runner, notation hover cards, derivation stepper and hints.

Original text is CC BY-SA 4.0 and code is MIT. Other people’s work is linked, never copied, except a few small datasets that tests and widgets need offline: see third-party notices.