catalog lab
MDN-116:29

Lab

Interactive machine-learning demos: touch the ideas behind the algorithms, step by step. Run them here, inside the screen, or download them as a single HTML file.

MDN · LAB THE PERCEPTRON Linear classification · 1958

Insert cartridge ▸

A single neuron learning a line: add points, watch it correct itself after every mistake and find out why on its own it cannot solve XOR.

MDN · LAB K-MEANS STEP BY STEP Clustering · 1967

Insert cartridge ▸

Watch K-means alternate assignment and centroid updates, compare random initialisation with k-means++ and pick K with the elbow method.

MDN · LAB GRADIENT DESCENT IN 3D Optimisation · 1847

Insert cartridge ▸

GD, Momentum and Adam race on the same loss surface. Pick the starting point, change the learning rate and watch who reaches the minimum (and who diverges).

MDN · LAB NEURAL NETWORK VS XOR Neural networks · 1986

Insert cartridge ▸

Where the perceptron fails, a network with a hidden layer succeeds. Choose the neurons and the activation, and watch what each neuron learns.

MDN · LAB OVERFITTING Generalisation · 1805

Insert cartridge ▸

A polynomial learning from a few noisy points. Raise the degree and watch the error on new data: underfitting, a good model, overfitting.

MDN · LAB DECISION TREE AND RANDOM FOREST Trees and ensembles · 1984

Insert cartridge ▸

The tree splits the plane with yes/no questions about one variable at a time, and you watch it grow in ASCII. Then 15 different trees vote: the random forest.

The “Inside the Lab” series

Five articles that explain, one idea at a time, what happens inside these demos: each one embeds its demo and ends with a short Python example. Read them in order.