ST340 Fundamentals of Machine Learning

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/81

flashcard set

Earn XP

Description and Tags

Comprehensive practice flashcards defining foundational concepts, models, architectures, and algorithms in ST340 Fundamentals of Machine Learning.

82 Terms

1
New cards

Supervised Learning

A machine learning setting where an algorithm is provided with labelled training data comprising input vectors and corresponding output labels, (x(i),y(i))i=1n(x^{(i)}, y^{(i)})_{i=1}^n, with the objective of predicting the labels of unseen future inputs.

2
New cards

Unsupervised Learning

A machine learning setting where an algorithm is provided with unlabelled data, (x(i))i=1n(x^{(i)})_{i=1}^n, with the objective of discovering underlying patterns, clustering data points, or performing dimension reduction without target labels.

3
New cards

Empirical Risk (Training Error)

The average loss evaluated across the training dataset DnD_n, defined for a prediction function ff and loss function ℓ\ell as R^(f)=1n∑i=1nℓ(f(x(i)),y(i))\hat{R}(f) = \frac{1}{n} \sum_{i=1}^n \ell(f(x^{(i)}), y^{(i)}).

4
New cards

Curse of Dimensionality

The phenomenon in high-dimensional spaces (d≫1d \gg 1) where geometric intuitions fail; data points become exceedingly sparse, nearest neighbours are located far away, and the vast majority of volume concentrates near the outer boundary.

5
New cards

Underfitting

A condition occurring when a model family is too simple (possessing too few parameters or high bias) to capture the true underlying data-generating relationship, leading to high training error and high generalization error.

6
New cards

Overfitting

A condition occurring when a model is excessively flexible (possessing too many parameters or high variance) and fits the random noise of the training data rather than the true signal, resulting in low training error but poor generalization to new data.

7
New cards

Mean Squared Error (MSE) Decomposition

The identity decomposing the expected squared error of an estimator θ^\hat{\theta} for a parameter θ\theta into variance and squared bias: E[(θ^−θ)2]=Var(θ^)+Bias2(θ^)\mathbb{E}[(\hat{\theta} - \theta)^2] = \text{Var}(\hat{\theta}) + \text{Bias}^2(\hat{\theta}).

8
New cards

Bayesian Occam's Razor

The property of Bayesian marginal likelihood maximization wherein overly complex models are automatically penalized because diffuse prior distributions over large parameter spaces place less probability mass on the specific parameter regions that explain the observed data well.

9
New cards

Laplace's Approximation

A method approximating an intractable posterior distribution p(θ∣D)p(\theta \mid D) by a multivariate normal distribution Nd(θ^,[H(θ^)]−1)N_d(\hat{\theta}, [H(\hat{\theta})]^{-1}) centered at the posterior mode θ^\hat{\theta}, where H(θ^)H(\hat{\theta}) is the Hessian matrix of second derivatives of the negative log posterior.

10
New cards

Bayesian Information Criterion (BIC)

A penalized model selection criterion defined for a dataset of size nn and a model with parameter dimension dmd_m as ℓBIC(m)=−2log⁡pm(D∣θ^MLE)+dmlog⁡(n)\ell_{\text{BIC}}(m) = -2 \log p_m(D \mid \hat{\theta}_{\text{MLE}}) + d_m \log(n), which selects the model with the minimum score.

11
New cards

Akaike Information Criterion (AIC)

A frequentist-derived model selection criterion defined as ℓAIC(m)=−2log⁡pm(D∣θ^MLE)+2dm\ell_{\text{AIC}}(m) = -2 \log p_m(D \mid \hat{\theta}_{\text{MLE}}) + 2d_m, penalizing parameter dimension by a constant factor of 22 rather than log⁡(n)\log(n).

12
New cards

Validation Data

A sequestered dataset, separate from both the training data and the final test data, used to estimate generalization error in order to compare and select among multiple candidate models.

13
New cards

Interpolation Threshold

The model capacity threshold at which a model possesses just enough parameters to fit the training data perfectly (achieving zero training error), which is frequently accompanied by a sharp spike in validation and test error.

14
New cards

Double Descent

The phenomenon observed in overparametrised machine learning models where, after peaking at the interpolation threshold, validation or generalization error decreases a second time as model capacity increases further into the overparametrised regime.

15
New cards

k-Fold Cross-Validation

A model selection procedure where the training set is partitioned into kk equally sized subsets, iteratively training on k−1k-1 subsets and evaluating validation error on the remaining subset, then selecting the model that minimizes the average error across all kk folds.

16
New cards

Leave-One-Out Cross-Validation (LOOCV)

The special case of kk-fold cross-validation where k=nk = n, meaning each model is trained nn separate times on n−1n - 1 data points and evaluated on the single held-out observation.

17
New cards

Expected Risk

The theoretical expected loss of a prediction function ff under the true joint probability distribution pp of inputs and outputs: R(f)=E[ℓ(f(X),Y)]R(f) = \mathbb{E}[\ell(f(X), Y)].

18
New cards

Conditional Risk

The expected loss of predicting a label value zz given a specific fixed input location xx, defined as r(z∣x)=E[ℓ(z,Y)∣X=x]r(z \mid x) = \mathbb{E}[\ell(z, Y) \mid X = x].

19
New cards

Bayes Predictor

A theoretical prediction function f∗:X→Yf^*: \mathcal{X} \to \mathcal{Y} that achieves the global minimum expected risk by choosing, for each input xx, the value f∗(x)∈arg⁡min⁡z∈Yr(z∣x)f^*(x) \in \arg\min_{z \in \mathcal{Y}} r(z \mid x).

20
New cards

Bayes Risk

The minimal attainable expected risk under the true distribution pp, defined as the risk R(f∗)R(f^*) associated with a Bayes predictor.

21
New cards

Excess Risk

The difference between the expected risk of a given prediction function ff and the Bayes risk, expressed as R(f)−R(f∗)R(f) - R(f^*).

22
New cards

No Free Lunch Theorem

A theorem stating that for binary classification with 00-11 loss over an infinite domain X\mathcal{X}, for any training sample size nn and any learning algorithm AA, the worst-case expected excess risk across all possible probability distributions is at least 1/21/2.

23
New cards

Discriminant Function

A non-probabilistic mapping f:Rd→{1,…,K}f: \mathbb{R}^d \to \{1, \dots, K\} that partitions the input space into KK decision regions separated by decision boundaries.

24
New cards

One-Hot Encoding

A binary vector representation of a categorical class label y∈{1,…,K}y \in \{1, \dots, K\} where the kkth component is 11 if the instance belongs to class kk, and 00 for all other coordinates.

25
New cards

Generative Model

A statistical learning model that fully specifies the joint probability distribution p(X,Y)p(X, Y) over both inputs and labels, enabling synthetic data points to be generated.

26
New cards

Discriminative Model

A statistical learning model that specifies only the conditional distribution of labels given the inputs, p(Y∣X)p(Y \mid X), without modelling the distribution of the inputs XX.

27
New cards

Standard Logistic Function

The sigmoidal mapping ϕ:R→[0,1]\phi: \mathbb{R} \to [0, 1] defined by ϕ(a)=11+e−a\phi(a) = \frac{1}{1 + e^{-a}}, used in logistic regression to map a real-valued linear predictor to a probability.

28
New cards

Cross-Entropy Loss (Negative Log-Likelihood Loss)

The loss function used in logistic regression and neural classification, defined for binary labels y∈{0,1}y \in \{0, 1\} as ℓ(f(x),y)=−ylog⁡ϕ(x⊤w)−(1−y)log⁡(1−ϕ(x⊤w))\ell(f(x), y) = -y \log \phi(x^\top w) - (1 - y) \log(1 - \phi(x^\top w)).

29
New cards

Iteratively Reweighted Least Squares (IRLS)

A numerical optimization method applying the Newton-Raphson algorithm to solve the maximum likelihood estimation problem for logistic regression.

30
New cards

Softmax Function

The normalized exponential vector mapping φ:RK→ΔK\varphi: \mathbb{R}^K \to \Delta_K defined coordinate-wise by φk(a)=eak∑l=1Keal\varphi_k(a) = \frac{e^{a_k}}{\sum_{l=1}^K e^{a_l}}, serving as a smooth, differentiable multi-class generalization of the logistic function.

31
New cards

Feature Mapping

A collection of basis functions ϕ:X→H\phi: \mathcal{X} \to \mathcal{H} that projects data points from the original input space into a higher-dimensional feature space H\mathcal{H} to allow linear hyperplanes to form non-linear decision boundaries in X\mathcal{X}.

32
New cards

k-Nearest Neighbours (kNN)

A non-parametric supervised learning algorithm that assigns the label of an input query point by taking a majority vote (for classification) or the arithmetic mean (for regression) of its kk closest data points according to a chosen distance metric.

33
New cards

Mahalanobis Distance

A distance metric defined by d(x,z)=(x−z)⊤S−1(x−z)d(x, z) = \sqrt{(x - z)^\top S^{-1} (x - z)}, where SS is the empirical covariance matrix of the data, weighting individual axes according to their sample variability and correlations.

34
New cards

Maximum Margin Hyperplane (MMH)

The unique separating hyperplane x⋅β+α=0x \cdot \beta + \alpha = 0 that classifies linearly separable binary data while maximizing the geometric margin, found by minimizing 12∥β∥2\frac{1}{2}\|\beta\|^2 subject to y(i)(x(i)⋅β+α)≥1y^{(i)}(x^{(i)} \cdot \beta + \alpha) \ge 1.

35
New cards

Margin (SVM)

The total perpendicular distance separating the parallel boundary hyperplanes of opposite classes in a support vector machine, equal to 2∥β∥\frac{2}{\|\beta\|}.

36
New cards

Support Vectors

The specific training observations in a support vector machine that lie directly on or inside the margin boundaries, satisfying y(i)(x(i)⋅β+α)=1−ξiy^{(i)}(x^{(i)} \cdot \beta + \alpha) = 1 - \xi_i, which uniquely define the optimal separating hyperplane.

37
New cards

Slack Variables (\xi_i)

Non-negative variables ξi≥0\xi_i \ge 0 introduced in soft-margin SVM formulations to permit misclassifications and margin violations, adding a linear penalty C∑i=1nξiC \sum_{i=1}^n \xi_i to the objective function.

38
New cards

Hinge Loss

The continuous piecewise-linear loss function defined as ℓ(z,y)=max⁡(0,1−yz)\ell(z, y) = \max(0, 1 - yz), punishing predictions that fall on the incorrect side of the margin in support vector machines.

39
New cards

Kernel Function

A symmetric function K:X×X→RK: \mathcal{X} \times \mathcal{X} \to \mathbb{R} that directly evaluates the inner product between two points in a feature space, K(x,x′)=⟨ϕ(x),ϕ(x′)⟩K(x, x') = \langle \phi(x), \phi(x') \rangle, without explicitly computing the feature mapping ϕ\phi.

40
New cards

Kernel Trick

The principle of replacing inner products of explicit feature vectors with evaluations of a kernel function K(x,x′)K(x, x'), enabling algorithms to operate in high- or infinite-dimensional feature spaces with computational cost depending only on the number of data points.

41
New cards

Radial Basis Function (RBF) Kernel

A widely used kernel function defined as K(x,x′)=exp⁡(−γ∥x−x′∥2)K(x, x') = \exp(-\gamma \|x - x'\|^2) for γ≥0\gamma \ge 0, which corresponds to an infinite-dimensional feature space.

42
New cards

Gaussian Process (GP)

A collection of random variables (Yx)x∈X(Y_x)_{x \in \mathcal{X}} such that any finite subcollection has a joint multivariate Gaussian distribution, fully determined by a mean function m(x)m(x) and a covariance kernel K(x,x′)K(x, x').

43
New cards

Positive Semidefinite Kernel

A symmetric kernel function KK that produces a positive semidefinite Gram matrix Kij=K(x(i),x(j))K_{ij} = K(x^{(i)}, x^{(j)}) satisfying ∑i=1n∑j=1ncicjK(x(i),x(j))≥0\sum_{i=1}^n \sum_{j=1}^n c_i c_j K(x^{(i)}, x^{(j)}) \ge 0 for all finite point collections and real coefficients.

44
New cards

Stationary Kernel

A covariance kernel that depends solely on the difference between two inputs, K(x,x′)=k(x−x′)K(x, x') = k(x - x'), making its covariance properties translation-invariant across the input domain.

45
New cards

Isotropic Kernel

A stationary covariance kernel that depends solely on the Euclidean distance between two inputs, K(x,x′)=k(∥x−x′∥)K(x, x') = k(\|x - x'\|), ensuring invariance to both translation and rotation.

46
New cards

Matérn Kernel

A family of covariance kernels parameterized by length-scale ℓ\ell and order ν\nu, where sample paths of the resulting Gaussian process are precisely ⌈ν⌉−1\lceil \nu \rceil - 1 times differentiable.

47
New cards

Ornstein–Uhlenbeck Process

The Gaussian process defined on R\mathbb{R} by a Matérn kernel with ν=1/2\nu = 1/2, K(x,x′)=exp⁡(−∥x−x′∥/ℓ)K(x, x') = \exp(-\|x - x'\| / \ell), which exhibits the Markov property but produces trajectories that are nowhere differentiable.

48
New cards

Automatic Relevance Determination (ARD) Kernel

A generalization of the squared exponential kernel that assigns a distinct length-scale parameter ℓj\ell_j to each input coordinate, allowing the relative predictive importance of each covariate to be inferred from data.

49
New cards

Kriging

A Bayesian non-parametric regression method that models an unknown real-valued function using a Gaussian process prior combined with a Gaussian observation likelihood, yielding an analytical Gaussian process posterior.

50
New cards

Perceptron

An early single-layer artificial neural network architecture proposed by Frank Rosenblatt in 1957 that uses fixed basis functions and a step threshold activation function to perform non-probabilistic binary classification.

51
New cards

Perceptron Criterion

The objective function minimized in perceptron training, defined as ℓn(w;Dn)=−∑i∈M(w)w⋅ϕ(x(i))y(i)\ell_n(w; D_n) = -\sum_{i \in \mathcal{M}(w)} w \cdot \phi(x^{(i)}) y^{(i)}, where M(w)\mathcal{M}(w) denotes the set of data points currently misclassified by weight vector ww.

52
New cards

Universal Approximation Theorem for Continuous Functions

A theorem establishing that any continuous function on a compact subset of Rd\mathbb{R}^d can be approximated uniformly by a two-layer feedforward network equipped with linear output units and Heaviside or sigmoidal hidden activations.

53
New cards

Kolmogorov–Arnold Representation Theorem

A theorem stating that every continuous function on [0,1]d[0, 1]^d can be written exactly as a finite superposition and composition of continuous univariate functions and addition operations: fk(x)=∑j=12d+1Φk(∑i=1dλigj(xi))f_k(x) = \sum_{j=1}^{2d+1} \Phi_k(\sum_{i=1}^d \lambda_i g_j(x_i)).

54
New cards

Gradient Descent (GD)

A first-order optimization algorithm that iteratively updates a parameter vector in the direction of steepest loss decrease evaluated across the full training dataset: w(t+1)=w(t)−η∇ℓn(w(t);Dn)w^{(t+1)} = w^{(t)} - \eta \nabla \ell_n(w^{(t)}; D_n).

55
New cards

Stochastic Gradient Descent (SGD)

An on-line variant of gradient descent that updates parameters using the gradient evaluated on a single data point (or mini-batch) at each iteration: w(t+1)=w(t)−η∇ℓ(w(t);x(i),y(i))w^{(t+1)} = w^{(t)} - \eta \nabla \ell(w^{(t)}; x^{(i)}, y^{(i)}).

56
New cards

Backpropagation

A dynamic programming implementation of the multivariable chain rule that propagates errors backward from the output layer to compute the partial derivatives of the loss with respect to all network weights in linear time.

57
New cards

Activation Function Saturation

The condition where an activation function's derivative becomes near zero (∣g′(a)∣≈0|g'(a)| \approx 0) across extreme input values, preventing gradients from flowing through the network and halting learning via gradient descent.

58
New cards

Momentum (SGD)

A technique in gradient descent that incorporates an exponentially decaying velocity vector of previous weight updates, v(t+1)=αv(t)−η∇ℓv^{(t+1)} = \alpha v^{(t)} - \eta \nabla \ell, helping the algorithm push through flat plateaus and dampening oscillations.

59
New cards

Batch Normalization

A training technique that standardizes the inputs to hidden units across each mini-batch to have zero mean and unit variance, followed by a learnable affine transformation with scale γ\gamma and shift β\beta.

60
New cards

Residual Connection (Skip Connection)

A network connection that adds the activation of an earlier layer directly to the output of a later layer, z(i+k)=z(i)+G(z(i))z^{(i+k)} = z^{(i)} + G(z^{(i)}), creating shortcut pathways for gradients to backpropagate directly without vanishing.

61
New cards

Vanishing Gradient Problem

An issue during backpropagation in deep neural networks where error gradients shrink exponentially as they propagate backward through many layers with small derivative values, preventing earlier layers from updating effectively.

62
New cards

Regularization

Any modification made to a machine learning algorithm or objective function designed specifically to reduce generalization error on unseen data without necessarily reducing training error.

63
New cards

Weight Decay (L2 Regularization)

A regularization method that adds an L2L_2 norm penalty λ2∥w∥22\frac{\lambda}{2}\|w\|_2^2 to the objective function, shrinking weights toward zero at each gradient step by a multiplicative factor of (1−ηλ)(1 - \eta\lambda).

64
New cards

Early Stopping

A regularization technique where iterative training is halted once validation error fails to improve after a specified patience threshold of iterations, preventing the network from overfitting to the training set.

65
New cards

Weight Sharing

A regularization approach that restricts subsets of network parameters, either by forcing them to take identical values (hard weight sharing) or by tying them to a common prior distribution (soft weight sharing).

66
New cards

Convolutional Neural Network (CNN)

A neural network architecture specialized for grid-structured data that replaces general dense matrix multiplication with discrete convolution (or cross-correlation) operations, enforcing sparse local connectivity and translation-invariant parameter sharing.

67
New cards

Toeplitz Matrix

A structured matrix with constant values along each descending diagonal from left to right, which corresponds to the linear operator representation of a discrete convolution.

68
New cards

Pooling

A non-linear spatial downsampling operation in CNNs (such as max pooling or average pooling) that summarizes local neighborhoods of neurons, reducing feature map dimensions and providing local translational invariance.

69
New cards

Transformer

A neural network architecture designed for sequence data that processes tokens in parallel using stacked multi-head self-attention mechanisms and feedforward layers, eschewing recurrence and convolution.

70
New cards

Self-Attention

A mechanism mapping an input sequence of tokens X∈Rd×MX \in \mathbb{R}^{d \times M} to a transformed sequence by computing attention weights from dot products of token queries qm=Uqxmq_m = U_q x_m and keys km=Ukxmk_m = U_k x_m via the softmax function.

71
New cards

Multi-Head Self-Attention (MHSA)

An attention architecture that applies HH distinct self-attention mechanisms in parallel using separate projection matrices, linearly combining their outputs through projection matrix VhV_h to capture diverse contextual dependencies simultaneously.

72
New cards

Masked Self-Attention

A constrained variant of self-attention where the attention matrix AA is forced to be upper triangular (Am′m=0A_{m'm} = 0 for m′>mm' > m), ensuring that each token attends only to preceding tokens in autoregressive language models.

73
New cards

Singular Value Decomposition (SVD)

The matrix factorization of any real m×nm \times n matrix AA into A=UΣV⊤A = U\Sigma V^\top, where UU and VV are orthogonal matrices of left- and right-singular vectors, and Σ\Sigma contains the ordered, non-negative singular values σi\sigma_i.

74
New cards

Frobenius Norm

A matrix norm defined for an m×nm \times n matrix MM as the square root of the sum of squared elements,  travel∥M∥F=∑i=1m∑j=1nmij2=tr(M⊤M)\ travel \|M\|_F = \sqrt{\sum_{i=1}^m \sum_{j=1}^n m_{ij}^2} = \sqrt{\text{tr}(M^\top M)}, which is invariant under orthogonal rotations.

75
New cards

Schmidt Low-Rank Matrix Approximation Theorem

A theorem stating that the optimal rank-kk approximation of a matrix AA under both the Frobenius and spectral norms is given by its truncated SVD, A~k=∑i=1kσiuivi⊤\tilde{A}_k = \sum_{i=1}^k \sigma_i u_i v_i^\top.

76
New cards

Spectral Norm

The induced operator norm of a matrix defined by  travel∥M∥2=sup⁡x≠0∥Mx∥2∥x∥2\ travel \|M\|_2 = \sup_{x \ne 0} \frac{\|Mx\|_2}{\|x\|_2}, which evaluates exactly to the largest singular value σ1\sigma_1 of MM.

77
New cards

Principal Component Analysis (PCA)

An unsupervised orthogonal linear transformation that projects centered data onto an orthonormal basis composed of the eigenvectors of the sample covariance matrix, arranged in descending order of explained variance.

78
New cards

Coordinate Descent

An iterative optimization algorithm that minimizes a multivariate objective function by successively solving exact one-dimensional minimization problems along single coordinate directions while keeping all other variables fixed.

79
New cards

K-Means Algorithm

A centroid-based clustering algorithm that uses coordinate descent to minimize the sum of squared Euclidean distances between observations and their assigned centroids, alternating between assigning points to the closest centroid and updating centroids to cluster means.

80
New cards

Gaussian Mixture Model (GMM)

A probabilistic latent variable model expressing the distribution of an observation as a convex combination of KK Gaussian component distributions: p(x)=∑k=1KwkN(x;μk,Σk)p(x) = \sum_{k=1}^K w_k N(x; \mu_k, \Sigma_k).

81
New cards

Expectation-Maximization (EM) Algorithm

An iterative coordinate ascent algorithm for finding maximum likelihood parameter estimates in models with latent variables, alternating between calculating posterior distributions of latent assignments (E-step) and maximizing expected complete-data log-likelihood (M-step).

82
New cards

Responsibility (\gamma_{ik})

In a mixture model, the posterior probability that observation x(i)x^{(i)} was generated by mixture component kk, computed in the E-step as γik=wkp(x(i)∣ψk)∑j=1Kwjp(x(i)∣ψj)\gamma_{ik} = \frac{w_k p(x^{(i)} \mid \psi_k)}{\sum_{j=1}^K w_j p(x^{(i)} \mid \psi_j)}.