Open Agent School · Public worked example
Network depth: meaning and example
Welcome! Take one idea with you today.
Depth counts successive transformation stages in a network. Conventions differ about counting the input or output, so comparisons should state exactly which layers are counted.
Picture it: One stage computes h = 2x + 1; the next computes y = 3h - 2. Together they give y = 6x + 1. Without a nonlinearity between them, the extra stage does not create a new family of curved functions.
What is easy to mix up?
A composition of affine layers is still affine. Nonlinear activations or other nonlinear operations are needed to break that limitation.
Teaching example by Open Agent School. Source: Dive into Deep Learning: Multilayer Perceptrons.