Maths for ML / Notation

min⁡xf(x), max⁡(a,b)\min_{x} f(x),\ \max(a, b)

min / max

OptimizationBeginner

Say it “min over x of f of x”

The smallest / largest value. With a subscript, search over that variable.

Example

max⁡(0,−2)=0\max(0, -2) = 0

That's ReLU at −2.

In code

np.max(x)         # largest entry
np.maximum(0, x)  # max(0, x) per entry: ReLU
torch.max(x)   # largest entry
torch.relu(x)  # max(0, x) per entry

Where you’ll see it in ML

ReLU, max-pooling, hinge loss, GANs' min-max game.

Don’t confuse it with

← All 94 symbols