Interactive Machine Learning Demonstrations

Welcome to our collection of interactive machine learning demos. Each demonstration allows you to experiment with different algorithms and parameters to build intuition about how they work.

Linear Regression preview
Lecture 02

Linear Regression

Explore how linear regression finds the best line through data points. Adjust parameters and see how the line changes in real-time.

Gradient Descent preview
Lecture 02

Gradient Descent

Step through gradient descent one iteration at a time. Visualize how parameters evolve and track the optimization path on the cost surface.

Multi-Linear Regression preview
Lecture 02

Multi-Linear Regression

Interactive demonstration of multi-linear regression with real-time feature selection. Toggle features on and off to see their impact on model predictions.

Regularisation preview
Lecture 03

Regularisation

Explore how higher model capacity can cause overfitting in polynomial regression and the effects of L1 and L2 regularisation to mitigate this.

1D Classification preview
Lecture 03

1D Classification

Interactive logistic regression with adjustable decision boundaries. See how the sigmoid function creates smooth classification boundaries.

2D Classification preview
Lecture 03

2D Classification

Multi-class classification with various boundary types (linear, polynomial, radial basis). Experiment with different decision boundary shapes.

Neural Networks preview
Lecture 04

Neural Networks

Build and train neural networks with adjustable architecture and parameters. Experiment with different layer sizes and activation functions.

Backpropagation preview
Lecture 04

Backpropagation

Step-by-step visualization of the backpropagation algorithm. Watch how gradients flow backward through the network layers.

Convolution & Pooling preview
Lecture 05

Convolution & Pooling

Interactive exploration of CNN operations with real-time filter visualization. See how convolution and pooling operations transform images.

CNN Architecture preview
Lecture 05

CNN Architecture

Complete MNIST digit classification with real PyTorch backend and epoch-by-epoch training visualization.

Recurrent Neural Networks preview
Lecture 06

Recurrent Neural Networks

Discover how RNNs process sequential data step-by-step. Visualize hidden state evolution and understand the core mechanics of recurrent processing.

Attention Mechanism preview
Lecture 06

Attention Mechanism

Explore how attention mechanisms work through Q, K, V computations and dot-product attention. Visualize how tokens attend to each other in sequence processing.

K-Means Clustering preview
Lecture 07

K-Means Clustering

Interactive clustering demonstration with step-by-step k-means algorithm visualization. Add your own points and watch how centroids move to minimize within-cluster distances.

Multi-Armed Bandit preview
Lecture 08

Multi-Armed Bandit

Explore the exploration vs exploitation tradeoff with interactive epsilon-greedy algorithm. Watch an agent learn to balance trying new actions with exploiting known good ones.