دوال الخسارة والتدرجات وargmax وتباعد KL وترميز الشبكات العصبية.
The gradient symbol in LaTeX is \nabla, which prints ∇ and needs no package: write \nabla f for the gradient of f, or \nabla_\theta \mathcal{L} for the gradient of a loss with respect to the parameters. Partial derivatives use \partial, predictions are \hat{y}, expectation is \mathbb{E} and argmax is \operatorname*{arg\,max}. The table lists the commands people use most when writing a gradient in LaTeX, with the package each one needs; the full list of machine learning symbols follows below.
| Symbol | Command | Use | Package | Copy |
|---|---|---|---|---|
\nabla | Gradient symbol (nabla, del) | built in | ||
\nabla_\theta \mathcal{L} | Gradient of the loss with respect to θ | built in | ||
\partial | Partial derivative | built in | ||
\frac{\partial \mathcal{L}}{\partial w} | Partial derivative of the loss | built in | ||
\mathcal{L} | Loss function | built in | ||
\theta | Model parameters | built in | ||
\hat{y} | Prediction, estimate | built in | ||
\mathbb{E} | Expectation | amssymb | ||
\operatorname*{arg\,max}_\theta | Argmax with a limit underneath | amsmath | ||
\operatorname*{arg\,min}_\theta | Argmin with a limit underneath | amsmath | ||
\|w\|_2 | L2 norm of the weights | built in | ||
\odot | Hadamard (element-wise) product | built in |
Load \usepackage{amsmath, amssymb} for \mathbb and \operatorname*. Vectors and matrices are usually bold, written \mathbf{x} or \boldsymbol{\theta} (amsmath), and the transpose is X^\top. For calculus notation in general see our guide to math functions in LaTeX and the calculus symbols page.
\mathcal{L}\mathbb{E}\mathbb{E}[X]D_{\text{KL}}(P \| Q)\text{KL}(P \| Q)\arg\max\arg\min\arg\max_{\theta}\arg\min_{\theta}\otimes\odot\text{softmax}\sigma\text{ReLU}\nabla\nabla_{\theta} \mathcal{L}\frac{\partial \mathcal{L}}{\partial \theta}\eta\theta\theta^*\mathbf{W}\mathbf{b}H(p, q)H(X)I(X; Y)\log p(x | \theta)p(y | x)\sum_{c=1}^{C}\prod_{i=1}^{N}\| \theta \|_1\| \theta \|_2\| \mathbf{W} \|_F