Diagram of a neural network: 2 inputs, two hidden layers of 8 units, 1 output. Line thickness and colour show the current weights and change while the network trains.
input x ∈ ℝ²
hidden 1 W₁ ∈ ℝ⁸ˣ² · tanh
hidden 2 W₂ ∈ ℝ⁸ˣ⁸ · tanh
output W₃ ∈ ℝ¹ˣ⁸ · σ
weight > 0
weight < 0
thickness = |weight|
each tile: where that unit is active
class 0
class 1
hover or tap the plot - the model answers
02
ML projects
Every project is written up as a model specification: what data, what architecture, what metric. A card appears only when there is something measured to show.
01
Two-moons classifier
binary classification - trains on this page
task
Separate two interleaved classes of points on a plane. A toy problem, chosen because a straight line cannot solve it.
data
Synthetic: 300 points, 2 classes, Gaussian noise σ = 0.2. Split 200 train / 100 test; features standardised with the train statistics only.
model
MLP 2-8-8-1: 105 parameters, tanh in the hidden layers, sigmoid at the output.
training
Mini-batch SGD with momentum 0.9, learning rate 0.006, batch 20, 300 epochs. Backpropagation is written by hand in TypeScript, without an ML library.
result
-test accuracy · epoch 000/300Measured on this page, in your browser, on the held-out test split. It is a toy dataset: the point is the mechanism, not the number.