One step of learning: move the parameters a little against the gradient.
Part VI · Optimization
Interactive Mathematical Foundations for Computing & Machine Learning · Book II
A book where every formula has a handle. Pull on a vector, watch the numbers answer, then follow the derivation — from vectors and calculus to gradient descent and softmax.
Coordinate plane from −7 to 7 on both axes; +x points right and +y points up. The vector v runs from the origin (0, 0) to the point (3, 2). Its horizontal component is 3 and its vertical component is 2.
= exact · ≈ rounded to 6 decimals
Every chapter follows the same order, so the mathematics always arrives with a mental picture already attached.
Meet the idea as a picture you can touch before any symbol appears.
Change one quantity and watch every consequence follow, in the same frame.
Follow the same numbers through the inspector and the formula.
Now the notation arrives, with something already in your hands to attach it to.
Run it in Python and NumPy, checked against the browser model.
If a formula says , the arrow ends at .
The picture, the inspector and the formula are three views of one mathematical state. Nothing on the page is a decorative approximation; if a rounded number appears, it is marked as one.
Each emblem is drawn from real mathematics of its Part, not from a stock icon set.
By the end, each of these should read as a description of something you have already moved with your hands.
One step of learning: move the parameters a little against the gradient.
Part VI · Optimization
Softmax turns unconstrained scores into a probability distribution.
Part VII · Information Theory
Cross entropy: how surprised a model is by the right answer.
Part VII · Information Theory
A linear layer: a transformation of space, then a shift.
Part II · Linear Algebra
All 97 chapters are available. Begin at Part I or choose a topic to explore, then follow the worked steps and exercises.