Map 1 · Building and training a network · The fork

Does the input have spatial structure?

Dense layers, or convolutions?

Key formula

Fact or figure

A convolution's parameter count depends on the filter size and number of filters, not the image size, thanks to weight sharing.

Skip this step and…

A dense layer on raw images ignores that nearby pixels belong together and needs a huge number of weights.

Digits example

A dense network on the 784 flattened pixels works (typically about 98% accuracy); a CNN on the image does better (over 99%) with fewer weights.

Learn it

Taught in Section 10 (Convolutional Neural Networks) of the course. The map follows the deep learning workflow, the order you build a model in; the course teaches in the order that is easiest to learn, so the numbers can jump.

How it connects

← Back to the whole map