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.
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.
Watch K-means alternate assignment and centroid updates, compare random initialisation with k-means++ and pick K with the elbow method.
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).
Where the perceptron fails, a network with a hidden layer succeeds. Choose the neurons and the activation, and watch what each neuron learns.
A polynomial learning from a few noisy points. Raise the degree and watch the error on new data: underfitting, a good model, overfitting.
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.
- 2026-11-26 POST From the perceptron to neural networks Artificial Intelligence
- 2026-11-26 POST Overfitting: when a model learns too well Artificial Intelligence
- 2026-11-26 POST Decision trees and random forests Artificial Intelligence
- 2026-11-26 POST K-means and the elbow method Artificial Intelligence
- 2026-11-26 POST Optimizers compared: SGD, Momentum and Adam Artificial Intelligence