01204563 Advanced Machine Learning

Machine
Learning Demos

Small interactive demonstrations for explaining machine-learning concepts in class. More demos will be added here over time.

ML
demos

Available demos

Grouped by chapter, following the Machine Learning book outline

Chapter 1 · From Data to Decisions

From Data to Decision teaching diagram preview

From Data to Decision

Start with zero data — just a coin flip — then add one signal at a time (season, cloud cover, humidity) to the same 48 days and watch prediction accuracy climb.

data → decisionno formulas yet

Chapter 2 · Inside a Learning System

Pens in a Box confusion-matrix demo preview

Pens in a Box (Confusion Matrix)

Build a small dataset, choose a query, then click what's actually true and watch TP/FP/TN/FN, recall, and precision compute live.

classification metricsprecision / recall
Choosing a Model train/validation/test demo preview

Choosing a Model: Train, Validation, Test

150 iris flowers split into train/validation/test before any model is fit — three named model families compete on validation only, and the test set opens once, at the end.

model selectiontrain / val / test

Chapter 3 · Reasoning from Evidence

Will It Rain Bayes' theorem demo preview

Will It Rain? (Bayes' Theorem)

Reveal evidence one piece at a time — season, time of day, cloud cover — and watch prior × likelihood combine into a posterior, live.

bayes' theoremprior / posterior

Chapter 4 · Learning from Nearby Examples

Parzen Windows and k-NN demo preview

Parzen Windows & k-NN

Compare two ways to pick a local window for classification, and use a leave-one-out accuracy curve to see why the window size matters.

non-parametricwindow selectionleave-one-out
Sampling and Quantization demo preview

Sampling & Quantization

Not from this book, but the same bandwidth idea one level down: see exactly what's lost from spatial sampling and intensity quantization, with Nyquist-limit and aliasing presets.

digital imagessame bandwidth tradeoff

Chapter 5 · Learning Decision Boundaries

Salmon or Seabass Bayes vs logistic demo preview

Salmon or Seabass? (Bayes vs. Logistic)

Sample from a real population and classify it with naive Bayes and logistic regression, then compare each fitted boundary against the true population boundary.

bayes classificationlogistic regression
SGD vs LDA demo preview

SGD vs. LDA: Learning a Boundary

Step through the exact arithmetic of training a linear classifier one point at a time — pick perceptron or logistic activation — and watch it chase LDA's closed-form boundary.

gradient descentstep by stepactivation functions
Activation Functions demo preview

Activation Functions: Why Not Just a Step?

Sigmoid, tanh, arctan, ReLU, step, and linear all race on the same data, same steepness, same learning rate — watch Step's error sit dead flat at 50% while its slope stays zero.

activation functionsvanishing/exploding slope
Maximum Margin SVM demo preview

Maximum Margin: Training a Linear SVM

Same rain data as SGD vs. LDA — step through a soft-margin SVM update and watch which points are support vectors, then raise λ to widen the margin and shrink that set.

SVMmargin & support vectors

Chapter 7 · Neural Networks

Backpropagation on XOR demo preview

Backpropagation on XOR

A step-by-step 2–2–1 MLP demonstration. Follow the numbers through the forward pass, loss, backward pass, and parameter update.

neural networksrecommended for class10 steps / round
Backpropagation Explorer demo preview

Backpropagation Explorer

Experimental version with 1–3 hidden units and selectable activation functions: sigmoid, tanh, arctan, ReLU, and linear.

explorationconfigurable

Chapter 8 · Deep Learning

Convolution filters demo preview

Convolution: Fixed vs. Learned Filters

Slide a 3×3 filter by hand on a rain-radar grid before the word "convolution" ever comes up, then compare a hand-designed edge filter against one trained with plain gradient descent.

convolutionfeature maps

Chapter 9 · Large Language Models

10x10 Bitmap Autoencoder demo preview

10×10 Bitmap Autoencoder

Train a 100–h–100 autoencoder on digits or bitmap icons, inspect every hidden feature, draw a test input, and compare its reconstruction with the closest training template.

autoencoderinteractive bitmapaugmentation

Chapter 10 · Learning with Trees

Random Forest Voting Lab demo preview

Random Forest Voting Lab

Grow a small random forest, inspect bootstrap samples and random feature splits, then see how individual decision trees vote together.

decision treesensemble learningmajority vote
XGBoost Residuals Lab demo preview

XGBoost: Residuals Lab

Build a small multi-class gradient-boosted model round by round, watching one tree per class correct the softmax residuals left by the last round.

gradient boostingstep by stepmulti-class classification