Map 1 · Building and training a network · Dense lane · step M3

Size the network

How deep, how wide, and for which task?

Key formula

Width grows parameters with the product of adjacent layers.

Fact or figure

Depth can represent structured functions with far fewer units than one wide layer, but it is harder to train.

Skip this step and…

An oversized network on a small dataset memorises it; an undersized one underfits.

Digits example

For digits as a dense network: one or two hidden layers of 128–256 ReLU units, and a 10-way output.

Learn it

Taught in Section 11 (Network Design and PyTorch) 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