Log inStart free
LESSON 25.01 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Convolutional neural networks

A 3 × 3 filter slides over a small image and finds a line.


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/mo
EXPLAINER · 25.01 · CNN BAYIMAGE 6×6 · PADDING 0
01
Stage 1 of 6 · The image
A CNN reads a 6 × 6 greyscale image with a bright bar down column 3.
Explain it simply

Each square is one pixel, a number from 0 for black to 1 for white. A stronger teal means a larger value. The bright bar runs down column 3. The faint pixels around the bar are noise.

A 6 by 6 grid of pixels. A bright bar runs down column 3.

pixelsfilter weightsmaps above 0, scoresmap values below 0padding, pooling blocks
0.00.10.10.00.20.20.00.00.80.20.20.20.00.10.80.00.10.10.10.11.00.20.20.00.20.20.80.00.00.20.10.00.00.00.20.0image 6×6X: 6 × 60.00.10.10.00.20.20.00.00.80.20.20.20.00.10.80.00.10.10.10.11.00.20.20.00.20.20.80.00.00.20.10.00.00.00.20.0image 6×6X: 6 × 6
Toy: a 6 × 6 image, 2 filters set by hand
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
X∈[0,1]6×6\sy{x}{data}{X} \in [0, 1]^{6 \times 6}
X∈R6×6X \in \mathbb{R}^{6 \times 6}

The image is a 6 by 6 grid of numbers from 0 to 1.

Common mix-ups

MYTHEach image position needs its own weights.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01At stride 1, no padding, move the bar 1 px right. Does the vertical share change?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

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.