Cookmath

Piecewise linear learning and experiments

A network alternates affine maps with nonlinear activations. ReLU(z)=max(0,z) makes a piecewise linear function; without activations, repeated linear layers collapse into a single matrix.

What you will learn

Work through one complete example

Objective 1: Expand a ReLU piecewise rule

Objective 2: Calculate slopes at the boundary

Objective 3: Separate training and testing evidence

A common mistake

State the assumptions before using the formula.

Review first

Continue learning

Piecewise linear learning and experiments

Interactive diagnosis and practice load in the learning app. You can read these lesson notes without JavaScript.