Maths for ML / Notation

f:Rn→Rf: \mathbb{R}^{n} \to \mathbb{R}

function arrow (type)

FunctionsBeginner

Say it “f maps R n to R”

Says what kind of input a function takes and what kind of output it gives — its type signature.

Example

f:R784→R10f: \mathbb{R}^{784} \to \mathbb{R}^{10}

A digit classifier: 784 pixels in, 10 scores out.

In code

def f(x: np.ndarray) -> np.ndarray: ...

Where you’ll see it in ML

Describing a model or layer's input/output shapes.

Don’t confuse it with

Lessons that use it

← All 94 symbols