Notation
The course’s sources use different symbols for the same things. Glassbox uses one notation everywhere. Hover a dotted symbol on any page for its card, or look it up here.
| Symbol | Name | Meaning | From | How sources differ |
|---|---|---|---|---|
| elementwise product | Multiply matching entries: (a ⊙ b)_i = a_i b_i. NumPy writes a * b. | 0.2 | ||
| vector | A column vector, written bold lower-case. Its i-th entry is x_i. | 1.1 | MML and UDL use bold; CS229 uses plain x. | |
| matrix | A matrix, written bold upper-case. A_{ij} is row i, column j. | 1.1 | UDL writes weights as Ω (Omega) and biases as β; we use W and b. | |
| transpose | Rows become columns: (Aᵀ)_{ij} = A_{ji}. xᵀy is the dot product. | 1.1 | ||
| norm | Euclidean length √(xᵀx) unless a subscript says otherwise (‖x‖₁ is the sum of absolute values). | 1.1 | ||
| determinant | Signed factor by which A scales areas (volumes). Zero means A squashes space flat. | 1.1 | ||
| identity | The identity matrix: ones on the diagonal, zeros elsewhere. Ix = x. | 1.1 | ||
| eigenvalue | A scalar with Av = λv for some non-zero v (the eigenvector). In Part 2, λ is also the regularization strength; context decides. | 1.2 | ||
| gradient | Vector of partial derivatives ∂f/∂x_i. Same shape as x. Points in the direction of steepest increase. | 1.3 | MML treats gradients as row vectors (§5.2); we follow UDL and CS229 and use the same shape as x. | |
| partial derivative | Rate of change of f as x_i alone changes, all other inputs held fixed. | 1.3 | ||
| Jacobian | For f: ℝⁿ → ℝᵐ, the m×n matrix of partials J_{ij} = ∂f_i/∂x_j. The best linear approximation of f near a point. | 1.3 | ||
| covariance matrix | Σ_{ij} = Cov(x_i, x_j). Symmetric and positive semi-definite. | 1.4 | Not to be confused with the summation sign ∑, or with the diagonal matrix of singular values in the SVD A = UΣVᵀ, which shares the symbol. MML §10 writes the data covariance as S. | |
| standard deviation / singular value / sigmoid | Standard deviation of a 1-D distribution (σ² is the variance). Also a singular value in SVD (1.2), and the sigmoid function σ(z) = 1/(1+e^{−z}) from 1.3 on. | 1.4 | ||
| mean | The mean (expected value) of a distribution. | 1.4 | ||
| expectation | The average of f(x) when x is drawn from p: ∑ p(x) f(x), or ∫ p(x) f(x) dx. | 1.4 | ||
| Gaussian | Normal distribution with mean μ and variance σ² (the second argument is a variance, not a standard deviation). | 1.4 | Some code libraries (numpy.random.normal) take the standard deviation instead. | |
| sampled from | x is a random sample drawn from the distribution p. | 1.4 | ||
| entropy | −∑ p(x) log p(x): the average surprise of p. In nats with natural log, bits with log₂. | 1.5 | ||
| cross-entropy | −∑ p(x) log q(x): average code length when data from p is coded using q. H(p, q) = H(p) + KL(p‖q). | 1.5 | ||
| KL divergence | ∑ p(x) log(p(x)/q(x)) ≥ 0, zero only when p = q. Not symmetric. | 1.5 | ||
| parameters | All learnable parameters of a model, collected into one vector. | 1.6 | UDL uses φ (phi) for model parameters; CS229 and most papers use θ. | |
| loss | The scalar we minimise; lower is better. Often an average over training examples. | 1.6 | ||
| learning rate | Step size in gradient descent: θ ← θ − η ∇L(θ). | 1.6 | UDL and CS229 write α for the learning rate; MML calls it the step-size γ (§7.1). | |
| argmin | The input x at which f is smallest (not the smallest value itself). | 1.6 | ||
| dataset | n training pairs of an input x_i and its target y_i. Rows of X are the inputs xᵢᵀ; y stacks the targets. | 2.1 | UDL writes I pairs {xᵢ, yᵢ}; CS229 writes m examples (x⁽ⁱ⁾, y⁽ⁱ⁾). | |
| prediction | The model's output for input x with parameters θ. The hat marks an estimate. | 2.1 | UDL writes f[x, φ] with parameters φ; CS229 writes h_θ(x). |
Conventions. Vectors are columns. A gradient has the same shape as the thing it differentiates. Logs are natural (nats) unless written log₂ (bits).