Skip to content
Road to Intelligence

Visual mode

The Lab

Every interactive in one place. Each one is built to create a single strong intuition; the ones marked toy use small, hand-set numbers, but the computation you see is real.

All chapters

1–9 of 52 experiments

Pick an experiment to build one intuition, or choose the chapter you're studying.

Chapter 1

What Is Artificial Intelligence?

  • Write the Rules

    Build a spam filter the 1980s way — by writing rules — then watch it meet new messages. Finally, let a learning algorithm work it out from examples instead.

    Understand8 mintoy model
  • Search: Blind vs Guided

    Draw walls on a grid and watch breadth-first, depth-first and A* search find their way — and count how much each has to explore.

    Know well8 min

Chapter 2

The Math Toolkit

  • Dot Product Lab

    Drag two vectors and watch their dot product and cosine similarity change with the angle between them.

    Know well5 min
  • Gradient Descent Playground

    Drop a point on a loss landscape and watch gradient descent, momentum and Adam race to the bottom. Push the learning rate until training diverges; add noise to see stochastic gradient descent.

    Know well15 mintoy model
  • Matrix as Transformation

    Edit a 2×2 matrix and watch it stretch, rotate, shear or collapse the plane — then add ReLU and see how a neural-network layer folds space.

    Know well8 min
  • Bayes with 1,000 People

    A rare condition, an imperfect test: see why a positive result can still mean you're probably fine — Bayes' theorem as counting.

    Know well6 min
  • Slopes and Steps

    Shrink a secant line until it becomes the tangent — the derivative — then use it to take a gradient-descent step downhill.

    Know well6 min
  • Confident and Wrong

    Adjust a model's scores for the next word and watch cross-entropy loss and perplexity respond — the exact quantity language models are trained to minimize.

    Know well6 mintoy model
  • How Sure Is That Accuracy?

    Evaluate the same model on hundreds of random test sets and watch the measured accuracy wobble — why small benchmarks can't separate close models.

    Understand5 mintoy model

Next: Chapter 3 · Machine Learning, Chapter 4 · Neural Networks, Chapter 5 · Vision, Speech & Reinforcement Learning