Functions and operators

ab\frac{a}{b} Fraction

Division: the top divided by the bottom.

In ML papers

ab\frac{a}{b} is aa divided by bb. In papers fractions often normalize (divide by a total so things sum to 1, as in softmax), average (1N∑i\frac{1}{N}\sum_i), or scale (QK⊤dk\frac{QK^\top}{\sqrt{d_k}}). When the top and bottom are dd's or ∂\partial's, it is a derivative, not a division: see Derivative (d/dx) and Partial derivative.

How to type it

LaTeXShows
\frac{a}{b}ab\frac{a}{b}
\tfrac{a}{b} small, inlineab\tfrac{a}{b}

A worked example

1N∑i=1Nxi=2+4+93=5\frac{1}{N}\sum_{i=1}^{N} x_i = \frac{2 + 4 + 9}{3} = 5

The 1N\frac{1}{N} in front of a sum turns it into an average.

Equations that use it

Related

dydx\frac{dy}{dx}Derivative (d/dx)∂L∂w\frac{\partial \mathcal{L}}{\partial w}Partial derivative∑i=1Nxi\sum_{i=1}^{N} x_iSummationdk\sqrt{d_k}Square root

Decode this example →