Gradient descent, backpropagation, attention heads — the algorithms powering modern AI, stripped down to their mathematical cores and made interactive. Train networks, visualise loss landscapes, and watch agents learn.
Interactive learning algorithms — from perceptron to transformer
All modern AI is differentiable function composition. A neural network is a parameterised function f(x; θ). Training minimises a loss L(θ) via gradient descent: θ ← θ − α ∇L. Backpropagation is the chain rule applied efficiently — O(forward pass) instead of O(parameters²).
The mathematics of learning from data
Articles and tutorials about machine learning
Neural networks, training, optimization, and AI explained visually
Machine learning simulations make the abstract mechanics of AI visible and interactive. A fully-connected neural network is displayed as a live graph where you watch weights update and loss decrease during backpropagation training. Genetic algorithm visualisers evolve populations of candidate solutions, showing selection pressure, crossover, and mutation changing the gene pool generation by generation.
Pattern recognition demos train on simple datasets (XOR, MNIST digits, spiral classification) so you can change learning rate, hidden layer size, or activation function and immediately see how training dynamics and decision boundaries respond. These interactive experiments build the intuition that textbooks and lecture slides cannot — making the behaviour of gradient descent, overfitting, and local minima concrete before diving into production frameworks.
Machine learning simulations make the mathematics of AI transparent. Gradient descent — the optimisation algorithm behind every neural network from GPT to AlphaFold — is just calculus on a high-dimensional landscape. Watching the loss surface and decision boundaries update in real time makes abstract concepts like overfitting, regularisation, and the vanishing gradient problem immediately intuitive. These tools are invaluable for students and practitioners alike.
Topics and algorithms you'll explore in this category
Common questions about this simulation category