Prime Atlas
Begin →
Volume I · MMXXVI The

Atlas of MachineIntelligence

Being an interactive account of how machines learn — from the first regression to the frontier of research. Set out in explainers, moving figures, exercises & papers decoded, for the newcomer and the expert alike.

Plate I Drag to turn the block
  1. Callout 1: The model. Its weights, rolling downhill.
  2. Callout 2: The deepest valley. The global minimum.
  3. Callout 3: A lesser valley. A local minimum — a common trap.
  4. The rule it follows w ← w − η∇L(w)
Step0
Loss—
Descending…
Plate I. — The descent of a learning machine upon a surface of error. Each hop is one step of gradient descent.
From the explainers · Chapter I, § 3

On the Learning Rate

Read this at the depth of a

Imagine standing on a foggy hillside, trying to reach the valley floor. You cannot see far, but you can feel the slope beneath your feet. Gradient descent does exactly this: feel the slope, take a step downhill, repeat. The learning rate is the length of your stride — too short and you will be walking all day; too long and you leap clean over the valley and land on the other side.

The learning rate η scales every update, w ← w − η∇L, and it is usually the first hyperparameter worth tuning. Too low and training stalls; too high and the loss oscillates or diverges. Modern training rarely holds it fixed: a short warm-up, then a cosine or step decay, paired with an optimizer such as Adam that adapts the step for each parameter.

For a quadratic loss with Hessian H, gradient descent converges exactly when 0 < η < 2/λmax(H), at a rate set by the condition number κ = λmax/λmin. Neural networks are not quadratic, and full-batch training behaves strikingly: sharpness rises until λmax ≈ 2/η, then hovers there while the loss keeps falling, non-monotonically — the so-called edge of stability.

Read the full lesson →
7 chapters · Three depths

The Contents

Each chapter is a plate of related ideas. Open one at any depth.

Explainers Each idea written three ways, with moving plates you can turn and test.
Libraries scikit-learn and PyTorch, every argument tied to the idea it controls.
Papers, decoded The one idea worth keeping from landmark research, and the questions it raises.
Exercises Predict, drag, derive and debug — checked as you go.