Machine learning & AI playgrounds

Train, cluster, optimize and generate — classic machine learning algorithms you can poke at, running live in your browser.

Most popular

popular

AI Learns to Drive (Neuroevolution)

Watch a population of neural-network cars evolve from crashing into corners to lapping a race track.

popular

Backpropagation Step-by-Step

Walk through one forward and backward pass of a tiny neural network, number by number.

popular

Decision Tree Builder

Grow a CART decision tree split by split and watch the partition map and tree diagram build together.

popular

Diffusion Model Toy

Train a tiny denoising diffusion model and watch it turn pure noise back into a 2D shape.

popular

Distribution Sketcher

Sketch the shape of a probability density — or paste raw data — and search 16 distributions for the ones that fit it best.

popular

Function Sketch Finder

Sketch a curve on a zoomable coordinate grid and search dozens of function families for the equations that fit it best.

popular

Gradient Descent Visualizer

Race SGD, Momentum, RMSProp and Adam across contour maps of five classic loss landscapes.

popular

Handwritten Digit Recognizer

Draw a digit and watch a neural network trained on MNIST recognize it live in your browser.

popular

LLM Tokenizer Visualizer

Train a small BPE tokenizer live in your browser and see exactly how any text splits into tokens.

popular

Linear Regression Playground

Place points, watch the least-squares line follow, and see gradient descent crawl across the loss surface.

popular

Neural Network Playground

Train a tiny neural network live in your browser and watch its decision boundary learn four classic datasets.

popular

Next-Token Sampling Playground

See the actual next-token distribution of a small language model and reshape it live with temperature, top-k and top-p.

popular

Overfitting Sandbox

Crank a polynomial’s degree on noisy data and watch the train/test error curves split apart.

popular

PCA Toy

Find the axes of maximum variance and flatten a point cloud onto them.

popular

Q-Learning Gridworld

Paint a gridworld and watch a Q-learning agent discover the best path by trial and error.

popular

ROC & Threshold Explorer

Drag a decision threshold and watch the confusion matrix, ROC curve and expected cost respond in real time.

popular

k-Means Clustering

Step through Lloyd’s algorithm and watch centroids chase the middles of your point clouds.

Supervised Learning

Unsupervised Learning

Neural Networks

Reinforcement Learning

Generative Models

Concepts & Metrics

Optimization & Filtering

Language Models

About these tools

Interactive machine learning demos: neural network training, gradient descent optimizers, clustering, dimensionality reduction, reinforcement learning and generative models. Every model trains locally in your browser on small 2D datasets you can edit, so you can watch the algorithm think — a hands-on way to build intuition for how machine learning actually works.