Explore Machine Learning
A free, kid-friendly interactive course with 109 live demos. Watch a self-driving car, a rocket lander and a tiny diffusion model learn in your browser: neural networks, reinforcement learning, computer vision, language models, diffusion and more.
This site runs entirely in your browser and needs JavaScript for its live demos. The course:
- Start here: Start Here – What is machine learning, and how is it different from normal programs?
- What is Machine Learning? – Teach Robo a secret rule just by showing examples. Watch its guesses go from random to right, one example at a time.
- Chapter 1: Learning from Examples – Supervised learning: every example comes with the right answer.
- Line Fitter – Linear regression: hotter days, more ice-cream. Watch a line wiggle step by step until it fits the dots best.
- Nearest Neighbours – Drop apples and lemons on the table. To guess a new fruit, Robo asks its closest neighbours and lets them vote.
- Twenty Questions Trees – Decision trees and random forests: watch a tree ask yes/no questions one by one, then plant a whole forest that votes.
- Memoriser vs Learner – Slide a wiggle knob and watch a model go from too simple, to just right, to memorising every dot. Why does a perfect score on the examples fail on new ones?
- Train vs Test – Hide some examples, teach the model with the rest, then grade it on the ones it never saw. See why a model must be tested on new things.
- Spam Filter – Teach a robot to spot spam. Mark messages as spam or fine and watch it learn which words are suspicious.
- Right or Wrong? – A robot that is 99% accurate can still be useless. Meet false alarms and misses, and see why one number is never the whole story.
- Chapter 2: Finding Groups – Unsupervised learning: spotting patterns with no answers given.
- Pizza Shop Planner – Where should the pizza shops go so every house gets pizza fast? Watch k-means move the shops step by step.
- Movie Recommender – People like you also liked... Rate a few movies and watch the model find your taste twins and suggest what to watch next.
- Squash to See – Lots of numbers are hard to picture. Spin a cloud of dots and find the best shadow to cast, so the most spread-out direction shows up flat on the page.
- Crowds and Loners – Some groups are not round blobs. Let Robo find crowds by how packed the dots are, and spot the loners who belong to no crowd at all.
- Chapter 3: Neural Networks – Pretend brains made of tiny number-switches.
- Meet One Neuron – One tiny brain cell decides: go outside or stay in? Wiggle its knobs, then watch it learn from example days.
- Brain Painter – Put red and blue dots anywhere. A little brain learns to paint the map so every dot sits on its own colour.
- Self-Driving Car – Hundreds of baby cars learn to drive through traffic, round after round. Or drive yourself and let a car copy you!
- Learning Rate Race – A ball rolls downhill to find the lowest spot. Too slow, too wild, or just right? Race different step sizes and add momentum.
- Backprop, Step by Step – Follow one tiny network as it guesses, sees how wrong it was, and sends the blame backwards to fix each weight.
- Why Brains Need a Bend – A network with no bend can only draw straight lines. Switch on a bend and watch it paint curvy shapes.
- Forgetful on Purpose – A brain that memorises every dot fails on new ones. Make some brain cells nap at random during practice and watch it learn the real pattern instead.
- Chapter 4: Reinforcement Learning – Learning by trying, with rewards and oopsies.
- Mouse Finds Cheese – A little mouse explores a maze. Cheese is yummy, traps are ouchy. Watch it build a map of good moves.
- Balance the Pole – Keep a wobbly pole standing on a cart. Try it yourself, then watch Robo go from flop to pro.
- Bird Learns to Fly – Tap to flap through the pipes. Then watch Robo crash, crash, crash… and then fly forever.
- Snake Learns to Eat – A hungry snake learns to chase food and not bite its own tail, one game at a time.
- Lucky Slot Machines – Which slot machine pays best? Keep pulling the one you like, or try a new one? Watch Robo balance exploring and cashing in.
- Reward Hacking – Tell a robot what to win and it may find a silly shortcut. Write the reward, watch it cheat, then fix the rule.
- Chapter 5: Computer Vision – Teaching computers to see.
- Robot Eyes – Zoom in until a picture becomes numbers. Then try the magic glasses (filters) robots use to find edges.
- Teach the Camera – Show your camera a few things. It learns to tell them apart in seconds, and gets surer with every example.
- What Is It? – Point your camera at stuff or draw something. A brain trained on a million pictures tells you what it sees, and where it looked.
- Pattern Scanners – A tiny window slides over a picture looking for a pattern. Watch a robot learn its own scanner, the idea behind CNNs, to spot stripes and corners.
- Draw the Box – Find things in a picture and draw a box around each one. Watch a model learn where objects are, not just what they are.
- Chapter 6: Language Models & LLMs – Guessing the next word, really, really well.
- Word Chopper – Computers chop sentences into little pieces called tokens and turn each one into a number. Type and see!
- Robo Follows Instructions – Give Robo word-blocks like "go to the blue star". Watch it learn which words to pay attention to, until it obeys every time.
- Puppy Trainer (RLHF) – Pick which puppy trick earns a treat. A treat predictor learns your taste, then the puppy practises until it does what you love.
- Word Map – Words become points on a map where friends sit close together. Watch a model learn the map, then try word maths: king minus man plus woman.
- Where to Look – When a model reads a sentence, which words does it look at? Watch attention light up the words that matter, and the model learn where to look.
- Hot or Cold Words – A language model gives every next word a chance. Turn the temperature dial from cold and boring to hot and silly, and see how it picks.
- Chapter 7: Vision-Language Models – Models that can see pictures and talk about them.
- Words ↔ Pictures – Draw or show a picture and type some words. Watch a real model turn both into numbers and find the best match.
- Picture Talker – A model looks at your picture and writes what it sees, one word at a time.
- Ask the Picture – Chop a picture into puzzle pieces, ask a question, and watch a tiny model look at the right pieces to answer. Trained live, nothing to download.
- Chapter 8: Image Generation – Diffusion models: making pictures by cleaning up static.
- Watch a Diffusion Model Learn – Pick a shape. A little model practises un-fuzzing it, and you watch its drawings go from fog to a perfect shape.
- Fuzz & Un-Fuzz – Draw a little picture, fuzz it into static, then watch it get cleaned up frame by frame.
- Forger vs Detective – Two models compete: a forger makes fake pictures and a detective tries to catch them. Watch both get better.
- Steer the Drawing – A diffusion model makes dots from static. Tell it which shape you want and turn up the steering knob: too little and it ignores you, too much and it goes weird.
- Chapter 9: Sound & Music – Teaching computers to hear and to make music.
- Teach the Ear – See your voice as a picture, then teach the computer to tell claps, whistles and hums apart.
- Tune Finisher – Play a few notes on the piano. Robo learns from tunes and finishes your song, note by note.
- Find the Note – Play a sound and turn it into a rainbow of frequencies. Watch Robo find the note, even with buzzing noise and missing notes.
- Chapter 10: Video Generation – Making movies by predicting the next frame.
- Next-Frame Dreamer – A little model watches a bouncing ball and learns physics by itself. Then it dreams up its own videos.
- Spot the Motion – Compare two video frames block by block and draw little arrows where things moved. That is how computers see motion.
- In-Between Frames – Make a smooth slow-motion video from two frames. Simple fading gives ghosts; following the motion arrows gives smooth in-between frames.
- Chapter 11: Artificial Intelligence – The bigger picture: machines that sense, think and act. Not all AI learns!
- Robot Vacuum: Rules or Learning? – A robot vacuum senses, thinks and acts. Give it hand-written rules, or let it learn, and watch which one cleans better when the room changes.
- Pathfinder – How does a map app find the best route? Watch smart search (A*) explore a map next to blind search, and see how many fewer steps it needs.
- The Thinking-Ahead Game – Play tic-tac-toe against an AI that imagines every possible future. See its thinking tree, and try (and fail) to beat it.
- Chess vs the AI – Play real chess against an AI that imagines moves and replies. Change how far ahead it looks and see the moves it considered.
- Mind Reader – Think of an animal. An AI asks yes/no questions and guesses it. See how it picks the best question, and why asking the right one matters.
- Where AI Fails – AI can be confidently wrong. Spot the mistakes, see why they happen, and learn when not to trust it.
- Your Data, Your Privacy – A model can remember things it was taught. See how secrets can leak out of training data and how to protect them.
- Chapter 12: Data & Features – Before a model can learn, the data has to be fit to learn from.
- Tidy the Mess – A dog table full of blanks, typos and silly numbers. Clean it up and watch the robot's score shoot up.
- Same Size, Fair Fight – Age goes to 80 but income goes to 200,000. See the robot ignore age, then make the sizes fair.
- Pick the Clues – A puzzle no straight line can solve becomes easy with the right clue. Pick clues and beware of junk.
- Who Did You Ask? – Ask only one neighbourhood and the robot fails everywhere else. Fix it by asking a varied crowd.
- Chapter 13: Time Series & Forecasting – Numbers that change over time, and how to guess what comes next.
- Smooth the Wiggles – Ice-cream sales bounce around. Average a few days and the real trend appears, but average too many and you arrive late.
- Spot the Seasons – Find how long a pattern takes to repeat and watch the robot split sales into trend, season and noise.
- Predict Tomorrow – Teach a robot to forecast from the past and see how its guesses get worse the further ahead it looks.
- Spot the Odd One – Set an alarm line on a sensor and feel the trade-off between false alarms and missed problems.
- Chapter 14: Agents & Tools – AI that does not just answer: it plans, uses tools and remembers.
- Think, Act, Look – Watch a helper think, use a tool, and look at the result, again and again. Then break a tool and see if it copes.
- Pick the Right Tool – A helper has a calculator, a clock and a lookup table. Teach it which one each request needs.
- A Small Backpack – A chat helper can only hold so many words. Shrink its backpack and see which memory trick still remembers.
- Plan Before You Go – Grabbing the cheapest next step can lead to a dead end. Race a greedy robot against a planner, then break a step.
- Chapter 15: Ethics, Safety & Alignment – Making AI fair, understandable, honest and hard to trick.
- Is It Fair? – A pretend club robot learned from unfair old decisions. Check how it treats two groups, then try to fix it.
- Why Did It Say That? – Ask a cat-or-dog robot for its reasons, poke one clue at a time, and catch it using a silly shortcut.
- How Sure Is Sure? – A robot says it is 95% sure. Is it really? Check its honesty, then teach it to say "I don't know".
- Tricked by Words – A pretend assistant obeys orders hidden in an email. Try four defences against fake tricks (a safe simulation).
- Chapter 16: Ensembles & Boosting – Many simple models, voting together, beat one clever model.
- Wisdom of the Crowd – Guess the jellybeans with a crowd. One guess is wobbly, but the average of many lands close. Unless everyone leans the same way!
- Vote of Many Trees – Give lots of little decision trees a shuffled copy of the data and let them vote. The vote is calmer than any one tree.
- Learn from Mistakes – Tiny helpers make one cut each. Dots they get wrong grow bigger, so the next helper tries harder on them.
- Bagging vs Boosting – Same noisy dots, two team styles. Turn up the wrong labels and see which team keeps its cool.
- Chase the Leftovers – Gradient boosting: each new little tree learns only what the team still gets wrong. Watch the leftovers shrink and a wiggly curve appear.
- The Careful Booster – The idea behind XGBoost. Race a wild booster against one with brakes, and see which copes better with noisy dots.
- No Peeking, Snacks! – The idea behind CatBoost. Turn snack names into numbers without peeking at the answer, and catch a booster that fools itself.
- Chapter 17: Generative Models – Squeezing pictures into a few numbers, and making new ones from them.
- Squeeze and Rebuild – Squeeze tiny pictures into a few numbers and watch a real neural network rebuild them. Tighter squeeze, blurrier picture.
- Map of Pictures – A network arranges pictures on a map. Click anywhere to see what it draws there, and slide from one picture to another.
- Make New Pictures – Pick random spots on the map and the network invents brand-new pictures. Too few rules gives junk, too many gives blur.
- Spot the Stranger – A network that only knows one kind of picture rebuilds strangers badly. Slide the alarm line and catch them.
- Chapter 18: Graphs, Ranking & Search – Things that are connected: friends, web pages and search results.
- Friends of Friends – Dots are people and lines are friendships. Tap someone to see their friend group and who they might want to meet.
- The Random Surfer – A surfer clicks random links around a tiny web. The pages she visits most are the important ones. Add links and try a cheat!
- Search Engine – Search thirty tiny pages and see exactly which words pushed each result up the list.
- Ask Your Neighbours – Only a few dots have name tags. Can a robot guess the rest by asking who each dot is connected to?
- Chapter 19: Robotics & Control – How machines move, sense and find their way.
- Steady Hands (PID) – Tune three knobs, P, I and D, to keep a drone at the right height even when the wind blows.
- Reach with Maths – Drag a target and watch a robot arm work out its joint angles with triangle maths. Spot the two ways to reach!
- Trust Your Sensors – A jittery sensor and drifting wheels each get it wrong. A Kalman filter blends them into a much better guess.
- Find a Way Around – Draw walls and grow a random tree of tries until it finds a path. Then race it against careful A*.
- Chapter 20: Optimisation & Search – Finding the best answer when there are too many to check.
- Evolve an Answer – Breed a crowd of scribbles, over and over, until a hidden picture appears. Nobody draws it!
- Cool Down to Solve – Plan a short trip through 20 towns. A hot robot makes mistakes on purpose, then cools down and beats the greedy one.
- Find the Best Knobs – A model has settings. Try them in a grid or at random, and learn why peeking at the final exam is cheating.
- Swarm of Searchers – A flock hunts for the highest hill. Tune how stubborn and how social they are, and watch them find it or get trapped.
- Chapter 21: Probability & Uncertainty – Being sensible about chance: beliefs, averages and what happens next.
- Update Your Belief – A test says positive. Count 1000 dots to see how often that is a false alarm, then test again and watch your belief move.
- Throw Darts to Find Pi – Throw random darts to discover pi, then beat the Monty Hall door puzzle by playing it 10,000 times.
- Averages Get Bell-Shaped – Average numbers from a lumpy, lopsided source and watch a smooth bell curve appear. Then build a confidence interval.
- Next State Please – A weather walker only remembers today. Edit its chances, see where it settles, then write sentences with a tiny next-word chain.
- Chapter 22: Game Lab – Games where the computer learns, gets better, and adapts when you make it harder.
- Boat Crosses the River – Little boats learn to fight the river current and reach the dock. Then make the current stronger, add logs or a whirlpool!
- Basketball Shooter – Robo throws, misses, and adjusts its aim until it sinks every shot. Then add wind or move the hoop!
- Sailboat Beats the Wind – A sailboat can't sail straight into the wind. Watch it learn to zig-zag to the buoy, then shift the wind on it.
- Goalie vs You – Take penalty kicks. The goalie learns your habits and starts saving them. Can you trick it?
- Rocket Lander – Try landing a rocket gently. Then watch Robo learn it, even with wind, heavy gravity and a moving landing pad.
- Creature Learns to Walk – Wobbly creatures made of sticks and muscles learn to walk. Add hills, ice or a heavy backpack!
- Dino Runner – A herd of baby dinos learns when to jump and when to duck. Speed it up or turn the lights off!
- Space Dodger – Little spaceships use radar to dodge asteroids and grab stars. Then start a meteor shower!
- Robo Arm – Robot arms with muscles learn to pick up a cube at A and drop it on a pad at B. Watch the muscles bulge, then make the cube heavy or the muscles tired!
- Delivery Drone – Like the drones that deliver medicine and parcels today. Little drones learn to hover, fly to a house and drop the package. Then add wind or a heavier box!
- Ants Find the Best Path – Hundreds of ants leave smelly trails and find the shortest way to food. Block their path and watch them find a new one.
- Auto-Parking – Little cars with distance sensors learn to steer into a bay and stop inside the lines. Then add parked neighbours, posts or a tight bay!
- Lane Keeper – Little cars learn to follow a winding road and stay in their lane. Then add hairpin bends, rain or cones in the road!