Open Agent School · Public worked example

Hidden layer: meaning and example

Welcome! Take one idea with you today.

A hidden layer is a stage between a network's input and final output. Its units transform the previous stage into an intermediate representation that later stages can use.

Picture it: Let x1 and x2 be two sensor values. Two hidden ReLU units compute max(0, x1 - x2) and max(0, x2 - x1). Adding them gives the absolute difference. Inputs [3, 1] produce hidden values [2, 0] and output 2.

What is easy to mix up?

Hidden means intermediate rather than an observed input or target. Software can expose these activations, although interpreting them remains difficult.

Teaching example by Open Agent School. Source: Dive into Deep Learning: Multilayer Perceptrons.