Cases (piecewise)
A piecewise definition: the value on each line applies when that line’s condition holds.
In ML papers
A big left brace with rows defines a function piece by piece: each row is a value, then the condition under which it applies. ReLU, the Huber loss, clipping and masks are written this way.
How to type it
| LaTeX | Shows |
|---|---|
\begin{cases} a & \text{if } \ldots \\ b & \text{otherwise} \end{cases} |
A worked example
The ReLU above, evaluated on both sides of zero.