This document provides the notation used in the Deep Learning Book, and is highly based on this LaTex file. You can refer to the source of this post for the latex commands.
Numbers and Arrays
|
A scalar (integer or real) |
|
A vector |
|
A matrix |
|
A tensor |
|
Identity matrix with rows and columns |
|
Identity matrix with dimensionality implied by context |
|
Standard basis vector with a 1 at position |
|
A square, diagonal matrix with diagonal entries given by |
|
A scalar random variable |
|
A vector-valued random variable |
|
A matrix-valued random variable |
Sets and Graphs
|
A set |
|
The set of real numbers |
|
The set containing 0 and 1 |
|
The set of all integers between and |
|
The real interval including and |
|
The real interval excluding but including |
|
Set subtraction, i.e., the set containing the elements of that are not in |
|
A graph |
|
The parents of in |
Indexing
|
Element of vector , with indexing starting at 1 |
|
All elements of vector except for element |
|
Element of matrix |
|
Row of matrix |
|
Column of matrix |
|
Element of a 3-D tensor |
|
2-D slice of a 3-D tensor |
|
Element of the random vector |
Linear Algebra Operations
|
Transpose of matrix |
|
Moore-Penrose pseudoinverse of |
|
Element-wise (Hadamard) product of and |
|
Determinant of |
Calculus
|
Derivative of with respect to |
|
Partial derivative of with respect to |
|
Gradient of with respect to |
|
Matrix derivatives of with respect to |
|
Tensor containing derivatives of with respect to |
|
Jacobian matrix of |
|
The Hessian matrix of at input point |
|
Definite integral over the entire domain of |
|
Definite integral with respect to over the set |
|
The random variables and are independent |
|
They are conditionally independent given |
|
A probability distribution over a discrete variable |
|
A probability distribution over a continuous variable, or over a variable whose type has not been specified |
|
Random variable has distribution |
|
Expectation of with respect to |
|
Variance of under |
|
Covariance of and under |
|
Shannon entropy of the random variable |
|
Kullback-Leibler divergence of P and Q |
|
Gaussian distribution over with mean and covariance |
Functions
|
The function with domain and range |
|
Composition of the functions and |
|
A function of parametrized by . (Sometimes we write and omit the argument to lighten notation) |
|
Natural logarithm of |
|
Logistic sigmoid, |
|
Softplus, |
|
norm of |
|
norm of |
|
Positive part of , i.e., |
|
is 1 if the condition is true, 0 otherwise |
Sometimes we use a function whose argument is a scalar but apply
it to a vector, matrix, or tensor: , , or .
This denotes the application of to the
array element-wise. For example, if , then
for all valid values of , and .
Datasets and Distributions
|
The data generating distribution |
|
The empirical distribution defined by the training set |
|
A set of training examples |
|
The -th example (input) from a dataset |
|
The target associated with for supervised learning |
|
The matrix with input example in row |
Final Notes
For using these commands, your post should have the following yaml config in the beginning of your markdown file:
---
dl_book_latex: true
---
Due to the compatibility issue between Kramdown and Mathjax, You should not use the condition symbol (|
) directly (kramdown table synyax), use the escaped text (\vert
) instead. Furthermore, you will want to use double dollar sign ($$...$$
) for most of your math notations, since single dollar sign ($...$
) may have some conflict with kramdown. (e.g., underscore need to be escaped with \_
)