LESSON 36.03 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Pruning and sparsity
Zero out a trained net's small weights, retrain it, and count what it saves.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 36.03 · PRUNING BAY80 WEIGHTS · 198 B · ACCURACY 94%
01
Stage 1 of 6 · Dense weights
The teacher stores 80 weights in W1 and W2. A larger square shows a larger weight.
Explain it simply
The test grid shows the teacher's guess for each test point. Blue marks are right and red marks are wrong. In W1 and W2, each square is one weight, and a bigger square is a bigger weight. A hollow square is a negative weight.
Left: the test grid, 159 of 169 guesses right. Right: W1 with 2 rows and W2 with 3 rows, one column per hidden unit, 16 columns. Square size shows the size of each weight.
inputs x₁, x₂, training pointsweights (solid +, hollow −), cut, shared valuesright guesses, classes, accuracywrong guessesweights to remove, pruned weights (0), the cut, unused shared values, true class borders, the teacher
Toy: the 36.C1 teacher (2-16-3, 80 weights), 72 training points, a 13 × 13 test grid; fine-tuned in the browser
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Two weight matrices turn a point into 3 class scores.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.