Functions and operators

max⁡(0,x)\max(0, x) Max and min

The largest (or smallest) value, over the arguments or over the range in the subscript.

In ML papers

max⁡(a,b)\max(a, b) is the larger of its arguments; max⁡ixi\max_{i} x_i the largest over the index in the subscript. ReLU is max⁡(0,x)\max(0, x); hinge losses and margins use max⁡(0,⋅)\max(0, \cdot) too. sup⁡\sup and inf⁡\inf are the careful versions used when the maximum may not be reached.

How to type it

LaTeXShows
\maxmax⁡\max
\minmin⁡\min
\max_{i} over an indexmax⁡i\max_{i}

A worked example

max⁡(0,−2)=0,max⁡(0,3)=3,min⁡i(4,1,6)i=1\max(0, -2) = 0, \quad \max(0, 3) = 3, \quad \min_i (4, 1, 6)_i = 1

Common confusions

Equations that use it

Related

arg⁡max⁡θf(θ)\arg\max_{\theta} f(\theta)Argmaxarg⁡min⁡θL(θ)\arg\min_{\theta} \mathcal{L}(\theta)ArgminReLU⁡(x)=max⁡(0,x)\operatorname{ReLU}(x) = \max(0, x)ReLU

Decode this example →