Prof. Gabe’s Teaching Demos

Interactive demos for lecture

Welcome! This page collects the interactive demos I use in my courses on machine learning, AI and statistics (and occasionally when presenting my research). It's a living collection that will likely grow and be refined over time. My own notes on neural networks are available here.

Please note that this site is:

  • Not a textbook. The demos are designed to be presented by someone who already understands the underlying concepts, not as stand-alone tutorials.
  • Not an engineering showcase. Most were built with substantial help from agentic coding tools (Claude Code and Codex). They replace my earlier collection of hand-implemented visualizations, which is no longer maintained.
  • Best in Chrome. Most demos run on WebGPU and are developed and tested in Chromium-based browsers (Chrome, Edge, Arc, Brave). In others, some may run slowly or not at all.

If you're curious how the neural network visualizations keep up in real time, check out my prototype visualization library HMPlot, which is built on top of jax-js and Threlte.

Neural networks

Statistics and optimization

Perceptrons

Reinforcement learning

Data and credits

Datasets:

  • MNIST: LeCun, Cortes and Burges, via the TensorFlow.js sample data.
  • Fashion-MNIST: Zalando Research, MIT License.
  • Quick, Draw!: Google Creative Lab, CC BY 4.0.
  • CIFAR-10: Krizhevsky, Nair and Hinton.
  • Auto MPG: R. Quinlan, UCI Machine Learning Repository, CC BY 4.0.
  • Iris: R. A. Fisher, UCI Machine Learning Repository, CC BY 4.0.
  • Palmer Penguins: Horst, Hill and Gorman, Palmer Station LTER, CC0.
  • Diabetes: Efron, Hastie, Johnstone and Tibshirani, via scikit-learn.
  • Wind vectors and movie ratings: Vega datasets.

Models and images: