freecoding.school100% FREE · NO SIGNUP
Tensor TownISSUE #38 of 120

cnns · filters · pooling · stride

NeuraVSThe Overfit Ogre
Neura saysCNNs use filters, pooling, and stride to extract and downsample features.

Three knobs shape a CNN. Filters (kernels) are the learnable feature detectors. Stride is how far the filter jumps each step (bigger stride → smaller output). Pooling (max/average) downsamples feature maps, shrinking spatial size while keeping the strongest signals, which adds robustness and cuts compute. Together they progressively compress the image into rich, abstract features.

Power-ups you unlock

The Overfit Ogre attacks — common mistakes

Boss battleExplain what max-pooling keeps and what it throws away.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>filter → feature map
stride 2 → half-size output
max-pool 2×2 → keep strongest of each 2×2 block</pre></body></html>
▶ Open the interactive comic issue
‹ Cnns · Convolutional Neural NetworksRnns · Recurrence · Vanishing Gradients ›