Maths for ML / Notation

f∘gf \circ g

composition

FunctionsIntermediate

Say it “f after g”

Apply g first, then f to the result: (f∘g)(x) = f(g(x)).

Example

f3∘f2∘f1f_3 \circ f_2 \circ f_1

A 3-layer network: data flows through f₁ first.

In code

f(g(x))
nn.Sequential(g, f)

Where you’ll see it in ML

A deep network is a composition of layers — this is why the chain rule matters.

Don’t confuse it with

Lessons that use it

← All 94 symbols