ML Study Hub

Glossary

141 words, each explained the plain way. Press / to search.

A B C D E F G H I K L M N O P R S T U V W

A

Accuracy MLP wk 6
the share of predictions that are right. Misleading when one class is rare.
Activation function MLT wk 12MLP wk 11
the "squish" a neuron applies to its score (sigmoid, tanh, ReLU). Without it a deep network is just a linear model.
AdaBoost MLT wk 11MLP wk 10
a relay of weak learners; each one concentrates on the examples the previous ones got wrong, and better learners get a louder vote.
Algebraic multiplicity MLF wk 4
how many times an eigenvalue appears as a root of the characteristic equation.
AUC MLP wk 6
the area under the ROC curve. 0.5 is guessing, 1.0 is perfect ranking.

B

Backpropagation MLT wk 12
the chain rule run backwards through a network so one pass gives the gradient of every weight.
Bagging MLT wk 11MLP wk 9
training many copies of a model on random samples (with replacement) and voting. Calms jumpy models (cuts variance).
Basis MLF wk 3
a smallest set of independent vectors that can build everything in a space.
Bayes' rule MLF wk 10MLT wk 4
flips a probability around: P(A∣B)=P(B∣A)P(A)/P(B)P(A|B)=P(B|A)P(A)/P(B).
Beta distribution MLT wk 4
a bell-like curve on [0,1][0,1], used as a belief about a coin's heads-probability. Beta(α,β\alpha,\beta) acts like α\alpha pretend heads and β\beta pretend tails.
Bias (model) MLT wk 6MLP wk 4
error from a model being too simple to capture the pattern. Underfitting.
Bias (neuron) MLT wk 12
the constant added to a neuron's weighted sum.
BIC MLP wk 12
a score for choosing how many mixture components: fit minus a penalty for extra parameters. Lower is better.
Boosting MLT wk 11MLP wk 10
training models one after another, each fixing the previous ones' mistakes. Cuts bias.
Bootstrap sample MLT wk 11MLP wk 9
a sample of size nn drawn from nn items with replacement.

C

C (SVM / logistic) MLT wk 10MLP wk 4
the price of a mistake. In scikit-learn it is the INVERSE of regularisation: small C means strong regularisation.
Central limit theorem MLF wk 10
averages of many independent trials are roughly bell-shaped, whatever the original shape.
Centring MLT wk 1
subtracting the mean so the data cloud is centred at the origin. Essential before PCA.
Characteristic equation MLF wk 4
det⁡(A−λI)=0\det(A-\lambda I)=0. Its roots are the eigenvalues.
Chebyshev's inequality MLF wk 10
P(∣X−μ∣≥kσ)≤1/k2P(|X-\mu|\ge k\sigma)\le1/k^2. A guarantee that few values are far from the average.
Classification MLF wk 1MLP wk 5
predicting a category.
Clustering MLF wk 1MLT wk 3
sorting unlabelled data into groups of similar items.
Column space MLF wk 3
everything you can build as AxA\mathbf x; the span of the columns.
Confusion matrix MLP wk 6
a table of true vs predicted classes. In scikit-learn: [[TN, FP], [FN, TP]].
Conjugate prior MLT wk 4
a prior chosen so the posterior is the same kind of curve (Beta prior with coin-flip data gives a Beta posterior).
Continuous MLF wk 2
a function you can draw without lifting the pencil.
Convex function MLF wk 8
bowl-shaped; the straight chord between two points lies on or above the graph. Every local minimum is the global minimum.
Convex hull MLF wk 8
the smallest convex set containing some points (stretch a rubber band round them).
Convex set MLF wk 8
a shape where the straight line between any two of its points stays inside it.
Covariance matrix MLF wk 6MLT wk 1
a table of variances (diagonal) and how pairs of features move together. Symmetric and positive semi-definite.
Cross-entropy MLF wk 9MLT wk 12
the loss for probabilities: −ln⁡-\ln of the probability given to the right answer.
Cross-validation MLT wk 5MLP wk 2
rotate which slice of the training data is held out for validation, and average the scores.
Curse of dimensionality MLT wk 7
in very many dimensions all points look equally far apart, so "nearest" loses meaning.

D

Data leakage MLP wk 1
test-set information sneaking into training, giving falsely good scores. Always fit on training data only.
DBSCAN MLP wk 12
clustering by density: finds any-shaped groups and labels loners as noise (−1-1).
Decision boundary MLT wk 9MLP wk 5
the line (or surface) where the classifier switches its answer.
Decision tree MLT wk 7MLP wk 9
a flowchart of yes/no questions built by always choosing the split that makes the groups purest.
Derivative MLF wk 2
the slope of a curve at one exact spot.
Determinant MLF wk 4
a number saying how a matrix scales area; the product of the eigenvalues. Zero means it squashes space flat.
Diagonalisable MLF wk 4
a matrix with enough independent eigenvectors to write A=PDP−1A=PDP^{-1}.
Dimensionality reduction MLF wk 1MLT wk 1
describing data with fewer numbers while keeping what matters.
Directional derivative MLF wk 2
the slope in a chosen direction: ∇f⋅u\nabla f\cdot\mathbf u with u\mathbf u a unit vector.
Dot product MLF wk 1
multiply matching entries and add. Zero means perpendicular.
Dual problem MLT wk 10
the same optimisation written with Lagrange multipliers; for the SVM it uses only dot products between points.

E

Eigenvalue MLF wk 4
the stretch factor of an eigenvector.
Eigenvector MLF wk 4
a direction a matrix only stretches or flips, never turns.
EM algorithm MLF wk 12MLT wk 4
alternate between guessing hidden labels (E-step, responsibilities) and refitting parameters using those guesses (M-step).
Ensemble MLT wk 11MLP wk 9
several models combined into one stronger model.
Entropy MLT wk 7
how mixed a group is: 0 when pure, 1 bit for a 50/50 two-class mix.
Epoch MLP wk 3
one full pass over the training data.
Estimator MLP wk 1
any scikit-learn object that learns from data with fit.
Exponential family MLF wk 11
distributions that share one recipe card: h(x)exp⁡(ηT(x)−A(η))h(x)\exp(\eta T(x)-A(\eta)).

F

F1 score MLP wk 6
the harmonic mean of precision and recall. High only if both are high.
Feature MLF wk 1
one measurable fact about a data point.
Feature scaling MLP wk 1
rewriting features to comparable ranges (standardise or min-max).

G

Gaussian mixture model (GMM) MLT wk 4MLP wk 12
data from several hidden bell-curve groups, with soft memberships.
Generative model MLT wk 8
models how data is produced for each class, P(x∣y)P(y)P(\mathbf x|y)P(y). Naive Bayes is one.
Gini impurity MLT wk 7MLP wk 9
1−∑pk21-\sum p_k^2, a mixedness measure for trees.
Gradient MLF wk 2
the vector of partial derivatives; points uphill.
Gradient boosting MLP wk 10
each new tree is trained on the leftover errors (residuals) of the team so far.
Gradient descent MLF wk 7MLP wk 3
repeatedly step against the gradient to find a minimum.
Gram matrix MLT wk 2
the table of kernel values k(xi,xj)k(\mathbf x_i,\mathbf x_j). Must be symmetric PSD.
GridSearchCV MLP wk 2
tries every combination of hyperparameters with cross-validation. Fits = combinations x folds.

H

Hessian MLF wk 7
the matrix of second derivatives; measures curvature.
Hinge loss MLT wk 10
max⁡(0,1−yf(x))\max(0,1-yf(\mathbf x)): zero for points safely beyond the margin.
Hyperparameter MLP wk 2
a setting you choose before training (tree depth, learning rate, C).

I

Imputation MLP wk 1
filling in missing values.
Independent MLF wk 10
knowing one event tells you nothing about the other.
Inertia MLP wk 12
the k-means objective: total squared distance from points to their centres.
Information gain MLT wk 7
parent entropy minus the size-weighted entropy of the children.

K

k-means MLT wk 3MLP wk 12
alternate "assign each point to its nearest centre" and "move each centre to the mean of its points".
k-means++ MLT wk 3
choose starting centres one by one, with probability proportional to squared distance from the centres already chosen.
k-NN MLT wk 7
predict from the kk most similar stored examples.
Kernel MLT wk 2
k(x,y)=ϕ(x)Tϕ(y)k(\mathbf x,\mathbf y)=\phi(\mathbf x)^T\phi(\mathbf y): the dot product after lifting, computed without lifting.
Kernel trick MLT wk 2MLT wk 10
replacing dot products by a kernel so linear methods draw curved boundaries.
KKT conditions MLF wk 9
stationarity, primal feasibility, dual feasibility (μ≥0\mu\ge0), complementary slackness (μg=0\mu g=0).

L

Lagrange multiplier MLF wk 9
a number that tells how hard a constraint is pushing at the optimum.
LASSO MLT wk 6MLP wk 4
least squares with an ℓ1\ell_1 penalty; sets some weights exactly to zero.
Latent variable MLF wk 12MLT wk 4
a hidden quantity the model needs but we never observe (which cluster a point came from).
Learning rate MLF wk 7MLP wk 3
the step size η\eta in gradient descent.
Likelihood MLF wk 12MLT wk 4
the probability of the observed data, viewed as a function of the parameter.
Linear approximation MLF wk 2
replacing a curve by its tangent line (plane) near a point: f(a)+f′(a)(x−a)f(a)+f'(a)(x-a).
Linear independence MLF wk 3
no vector in the set can be built from the others.
Linear regression MLF wk 3MLT wk 5MLP wk 3
fitting a straight line (plane) by least squares.
Logistic regression MLF wk 9MLT wk 9MLP wk 5
a linear score squeezed through a sigmoid to give a probability.
Loss function MLF wk 1
a number saying how wrong a model is.

M

MAP estimate MLF wk 12MLT wk 4
the peak of the posterior: the most probable parameter after seeing data and the prior.
Margin MLT wk 10
the width of the empty road between the classes: 2/∥w∥2/\|\mathbf w\|.
Markov's inequality MLF wk 10
for X≥0X\ge0, P(X≥a)≤E[X]/aP(X\ge a)\le E[X]/a.
Matrix MLF wk 3
a rectangle of numbers; AxA\mathbf x mixes the columns of AA.
Maximum likelihood (MLE) MLF wk 12MLT wk 4
pick the parameter that makes the observed data most probable.
Mean squared error (MSE) MLF wk 1MLP wk 1
the average of the squared errors.
Memoryless property MLF wk 10
for the exponential distribution, having waited already does not change the chance of waiting longer.
Multiclass / multilabel / multioutput MLP wk 7
one label of many / several yes-no labels / several targets at once.

N

Naive Bayes MLT wk 8
classify with Bayes' rule, pretending features are independent given the class.
Neural network MLT wk 12MLP wk 11
layers of neurons, each a weighted sum plus a non-linear squish.
Norm MLF wk 1
the length of a vector, ∑vi2\sqrt{\sum v_i^2}.
Normal equations MLF wk 3MLT wk 5
XTXw=XTyX^TX\mathbf w=X^T\mathbf y: the least-squares solution.
Null space MLF wk 3
all x\mathbf x with Ax=0A\mathbf x=\mathbf 0. Dimension n−rn-r.

O

One-hot encoding MLP wk 1
one 0/1 column per category.
One-vs-one / one-vs-rest MLP wk 7
multiclass tricks needing K(K−1)/2K(K-1)/2 and KK binary classifiers.
Orthogonal matrix MLF wk 5
perpendicular unit columns; keeps lengths; Q−1=QTQ^{-1}=Q^T.
Out-of-bag (OOB) MLT wk 11MLP wk 9
the examples a bootstrap sample missed (about 37%); a free validation set.
Overfitting MLT wk 5MLP wk 2
great on training data, poor on new data. The model memorised noise.

P

PCA MLF wk 6MLT wk 1MLP wk 12
find the directions of greatest variance (eigenvectors of the covariance matrix) and keep the top few.
Perceptron MLT wk 9
a linear classifier updated only when it makes a mistake: w←w+yx\mathbf w\leftarrow\mathbf w+y\mathbf x.
Pipeline MLP wk 2
a chain of transformers followed by an estimator, all fitted together.
Positive definite MLF wk 5
xTAx>0\mathbf x^TA\mathbf x>0 for all non-zero x\mathbf x; all eigenvalues positive; a bowl.
Positive semi-definite (PSD) MLF wk 5MLT wk 2
xTAx≥0\mathbf x^TA\mathbf x\ge0; all eigenvalues ≥0\ge0. Covariance matrices and Gram matrices are PSD.
Posterior MLT wk 4
your belief after seeing data: likelihood x prior.
Precision MLP wk 6
of everything called positive, how much really was: TP/(TP+FP)TP/(TP+FP).
Prior MLT wk 4
your belief before seeing data.
Projection MLF wk 3
the shadow of a vector on a line or subspace; the closest point there.

R

Random forest MLT wk 11MLP wk 9
bagged trees where each split may only use a random subset of features.
Rank MLF wk 3
the number of independent columns (equals the number of independent rows).
Recall MLP wk 6
of all truly positive cases, how many were found: TP/(TP+FN)TP/(TP+FN).
Regression MLF wk 1MLT wk 5
predicting a number.
Regularisation MLT wk 6MLP wk 4
a penalty that keeps the model simple (ridge, LASSO).
ReLU MLT wk 12
the activation max⁡(0,z)\max(0,z).
Residual MLF wk 3
the leftover: true value minus fitted value.
Responsibility MLF wk 12MLT wk 4
the probability that a point came from a given component.
Ridge regression MLT wk 6MLP wk 4
least squares with an ℓ2\ell_2 penalty: (XTX+λI)−1XTy(X^TX+\lambda I)^{-1}X^T\mathbf y.
ROC curve MLP wk 6
true-positive rate against false-positive rate as the threshold moves.

S

Sigmoid MLF wk 9MLT wk 9
1/(1+e−z)1/(1+e^{-z}), an S-curve squeezing any number into (0,1).
Singular value decomposition (SVD) MLF wk 6
any matrix equals rotate, stretch, rotate: A=UΣVTA=U\Sigma V^T.
Soft margin MLT wk 10
an SVM that lets a few points break the rules, at price CC.
Softmax MLT wk 12MLP wk 5
turns a list of scores into probabilities that add to 1.
Spectral theorem MLF wk 5
a real symmetric matrix has real eigenvalues and perpendicular eigenvectors: A=QΛQTA=Q\Lambda Q^T.
Stacking MLP wk 10
train a meta-model on the predictions of other models.
Stratified split MLP wk 1
a split that keeps the class proportions the same in train and test.
Supervised learning MLF wk 1
learning from examples that come with the right answers.
Support vector MLT wk 10MLP wk 8
a training point on or inside the margin; only these decide the SVM boundary.
Symmetric matrix MLF wk 5
A=ATA=A^T.

T

Threshold MLP wk 6
the score cut-off for calling something positive. Raising it raises precision and lowers recall.
Trace MLF wk 4
the sum of the diagonal entries; equals the sum of the eigenvalues.

U

Underfitting MLT wk 5MLP wk 4
the model is too simple; poor on training and test data alike.
Unsupervised learning MLF wk 1MLT wk 1
finding structure in data without labels.

V

Variance (of a model) MLT wk 6MLP wk 4
how much the learned model changes when the training sample changes. Overfitting.
Variance (statistics) MLF wk 10
how spread out a random variable is around its mean.
Vector MLF wk 1
a list of numbers; a point or an arrow.

W

Weak learner MLT wk 11
a model only slightly better than guessing, like a one-question tree (a stump).