141 words, each explained the plain way. Press / to search.
A
Accuracy MLP wk 6the share of predictions that are right. Misleading when one class is rare.
Activation function MLT wk 12MLP wk 11the "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 10a 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 4how many times an eigenvalue appears as a root of the characteristic equation.
AUC MLP wk 6the area under the ROC curve. 0.5 is guessing, 1.0 is perfect ranking.
B
Backpropagation MLT wk 12the chain rule run backwards through a network so one pass gives the gradient of every weight.
Bagging MLT wk 11MLP wk 9training many copies of a model on random samples (with replacement) and voting. Calms jumpy models (cuts variance).
Basis MLF wk 3a smallest set of independent vectors that can build everything in a space.
Bayes' rule MLF wk 10MLT wk 4flips a probability around:
P(A∣B)=P(B∣A)P(A)/P(B).
Beta distribution MLT wk 4a bell-like curve on
[0,1], used as a belief about a coin's heads-probability. Beta(
α,β) acts like
α pretend heads and
β pretend tails.
Bias (model) MLT wk 6MLP wk 4error from a model being too simple to capture the pattern. Underfitting.
Bias (neuron) MLT wk 12the constant added to a neuron's weighted sum.
BIC MLP wk 12a score for choosing how many mixture components: fit minus a penalty for extra parameters. Lower is better.
Boosting MLT wk 11MLP wk 10training models one after another, each fixing the previous ones' mistakes. Cuts bias.
Bootstrap sample MLT wk 11MLP wk 9a sample of size
n drawn from
n items with replacement.
C
C (SVM / logistic) MLT wk 10MLP wk 4the price of a mistake. In scikit-learn it is the INVERSE of regularisation: small C means strong regularisation.
Central limit theorem MLF wk 10averages of many independent trials are roughly bell-shaped, whatever the original shape.
Centring MLT wk 1subtracting the mean so the data cloud is centred at the origin. Essential before PCA.
Characteristic equation MLF wk 4det(A−λI)=0. Its roots are the eigenvalues.
Chebyshev's inequality MLF wk 10P(∣X−μ∣≥kσ)≤1/k2. A guarantee that few values are far from the average.
Clustering MLF wk 1MLT wk 3sorting unlabelled data into groups of similar items.
Column space MLF wk 3everything you can build as
Ax; the span of the columns.
Confusion matrix MLP wk 6a table of true vs predicted classes. In scikit-learn: [[TN, FP], [FN, TP]].
Conjugate prior MLT wk 4a prior chosen so the posterior is the same kind of curve (Beta prior with coin-flip data gives a Beta posterior).
Continuous MLF wk 2a function you can draw without lifting the pencil.
Convex function MLF wk 8bowl-shaped; the straight chord between two points lies on or above the graph. Every local minimum is the global minimum.
Convex hull MLF wk 8the smallest convex set containing some points (stretch a rubber band round them).
Convex set MLF wk 8a shape where the straight line between any two of its points stays inside it.
Covariance matrix MLF wk 6MLT wk 1a table of variances (diagonal) and how pairs of features move together. Symmetric and positive semi-definite.
Cross-entropy MLF wk 9MLT wk 12the loss for probabilities:
−ln of the probability given to the right answer.
Cross-validation MLT wk 5MLP wk 2rotate which slice of the training data is held out for validation, and average the scores.
Curse of dimensionality MLT wk 7in very many dimensions all points look equally far apart, so "nearest" loses meaning.
D
Data leakage MLP wk 1test-set information sneaking into training, giving falsely good scores. Always fit on training data only.
DBSCAN MLP wk 12clustering by density: finds any-shaped groups and labels loners as noise (
−1).
Decision boundary MLT wk 9MLP wk 5the line (or surface) where the classifier switches its answer.
Decision tree MLT wk 7MLP wk 9a flowchart of yes/no questions built by always choosing the split that makes the groups purest.
Derivative MLF wk 2the slope of a curve at one exact spot.
Determinant MLF wk 4a number saying how a matrix scales area; the product of the eigenvalues. Zero means it squashes space flat.
Diagonalisable MLF wk 4a matrix with enough independent eigenvectors to write
A=PDP−1.
Dimensionality reduction MLF wk 1MLT wk 1describing data with fewer numbers while keeping what matters.
Directional derivative MLF wk 2the slope in a chosen direction:
∇f⋅u with
u a unit vector.
Dot product MLF wk 1multiply matching entries and add. Zero means perpendicular.
Dual problem MLT wk 10the same optimisation written with Lagrange multipliers; for the SVM it uses only dot products between points.
E
Eigenvalue MLF wk 4the stretch factor of an eigenvector.
Eigenvector MLF wk 4a direction a matrix only stretches or flips, never turns.
EM algorithm MLF wk 12MLT wk 4alternate between guessing hidden labels (E-step, responsibilities) and refitting parameters using those guesses (M-step).
Entropy MLT wk 7how mixed a group is: 0 when pure, 1 bit for a 50/50 two-class mix.
Epoch MLP wk 3one full pass over the training data.
Estimator MLP wk 1any scikit-learn object that learns from data with fit.
Exponential family MLF wk 11distributions that share one recipe card:
h(x)exp(ηT(x)−A(η)).
F
F1 score MLP wk 6the harmonic mean of precision and recall. High only if both are high.
Feature MLF wk 1one measurable fact about a data point.
Feature scaling MLP wk 1rewriting features to comparable ranges (standardise or min-max).
G
Gaussian mixture model (GMM) MLT wk 4MLP wk 12data from several hidden bell-curve groups, with soft memberships.
Generative model MLT wk 8models how data is produced for each class,
P(x∣y)P(y). Naive Bayes is one.
Gini impurity MLT wk 7MLP wk 91−∑pk2, a mixedness measure for trees.
Gradient MLF wk 2the vector of partial derivatives; points uphill.
Gradient boosting MLP wk 10each new tree is trained on the leftover errors (residuals) of the team so far.
Gradient descent MLF wk 7MLP wk 3repeatedly step against the gradient to find a minimum.
Gram matrix MLT wk 2the table of kernel values
k(xi,xj). Must be symmetric PSD.
GridSearchCV MLP wk 2tries every combination of hyperparameters with cross-validation. Fits = combinations x folds.
H
Hessian MLF wk 7the matrix of second derivatives; measures curvature.
Hinge loss MLT wk 10max(0,1−yf(x)): zero for points safely beyond the margin.
Hyperparameter MLP wk 2a setting you choose before training (tree depth, learning rate, C).
I
Imputation MLP wk 1filling in missing values.
Independent MLF wk 10knowing one event tells you nothing about the other.
Inertia MLP wk 12the k-means objective: total squared distance from points to their centres.
K
k-means MLT wk 3MLP wk 12alternate "assign each point to its nearest centre" and "move each centre to the mean of its points".
k-means++ MLT wk 3choose starting centres one by one, with probability proportional to squared distance from the centres already chosen.
k-NN MLT wk 7predict from the
k most similar stored examples.
Kernel MLT wk 2k(x,y)=ϕ(x)Tϕ(y): the dot product after lifting, computed without lifting.
Kernel trick MLT wk 2MLT wk 10replacing dot products by a kernel so linear methods draw curved boundaries.
KKT conditions MLF wk 9stationarity, primal feasibility, dual feasibility (
μ≥0), complementary slackness (
μg=0).
L
Lagrange multiplier MLF wk 9a number that tells how hard a constraint is pushing at the optimum.
LASSO MLT wk 6MLP wk 4least squares with an
ℓ1 penalty; sets some weights exactly to zero.
Latent variable MLF wk 12MLT wk 4a hidden quantity the model needs but we never observe (which cluster a point came from).
Likelihood MLF wk 12MLT wk 4the probability of the observed data, viewed as a function of the parameter.
Linear approximation MLF wk 2replacing a curve by its tangent line (plane) near a point:
f(a)+f′(a)(x−a).
Linear independence MLF wk 3no vector in the set can be built from the others.
Loss function MLF wk 1a number saying how wrong a model is.
M
MAP estimate MLF wk 12MLT wk 4the peak of the posterior: the most probable parameter after seeing data and the prior.
Margin MLT wk 10the width of the empty road between the classes:
2/∥w∥.
Markov's inequality MLF wk 10for
X≥0,
P(X≥a)≤E[X]/a.
Matrix MLF wk 3a rectangle of numbers;
Ax mixes the columns of
A.
Maximum likelihood (MLE) MLF wk 12MLT wk 4pick the parameter that makes the observed data most probable.
Memoryless property MLF wk 10for the exponential distribution, having waited already does not change the chance of waiting longer.
Multiclass / multilabel / multioutput MLP wk 7one label of many / several yes-no labels / several targets at once.
N
Naive Bayes MLT wk 8classify with Bayes' rule, pretending features are independent given the class.
Neural network MLT wk 12MLP wk 11layers of neurons, each a weighted sum plus a non-linear squish.
Norm MLF wk 1the length of a vector,
∑vi2.
Normal equations MLF wk 3MLT wk 5XTXw=XTy: the least-squares solution.
Null space MLF wk 3all
x with
Ax=0. Dimension
n−r.
O
One-hot encoding MLP wk 1one 0/1 column per category.
One-vs-one / one-vs-rest MLP wk 7multiclass tricks needing
K(K−1)/2 and
K binary classifiers.
Orthogonal matrix MLF wk 5perpendicular unit columns; keeps lengths;
Q−1=QT.
Out-of-bag (OOB) MLT wk 11MLP wk 9the examples a bootstrap sample missed (about 37%); a free validation set.
Overfitting MLT wk 5MLP wk 2great on training data, poor on new data. The model memorised noise.
P
PCA MLF wk 6MLT wk 1MLP wk 12find the directions of greatest variance (eigenvectors of the covariance matrix) and keep the top few.
Perceptron MLT wk 9a linear classifier updated only when it makes a mistake:
w←w+yx.
Pipeline MLP wk 2a chain of transformers followed by an estimator, all fitted together.
Positive definite MLF wk 5xTAx>0 for all non-zero
x; all eigenvalues positive; a bowl.
Positive semi-definite (PSD) MLF wk 5MLT wk 2xTAx≥0; all eigenvalues
≥0. Covariance matrices and Gram matrices are PSD.
Posterior MLT wk 4your belief after seeing data: likelihood x prior.
Precision MLP wk 6of everything called positive, how much really was:
TP/(TP+FP).
Prior MLT wk 4your belief before seeing data.
Projection MLF wk 3the shadow of a vector on a line or subspace; the closest point there.
R
Random forest MLT wk 11MLP wk 9bagged trees where each split may only use a random subset of features.
Rank MLF wk 3the number of independent columns (equals the number of independent rows).
Recall MLP wk 6of all truly positive cases, how many were found:
TP/(TP+FN).
Regularisation MLT wk 6MLP wk 4a penalty that keeps the model simple (ridge, LASSO).
ReLU MLT wk 12the activation
max(0,z).
Residual MLF wk 3the leftover: true value minus fitted value.
Responsibility MLF wk 12MLT wk 4the probability that a point came from a given component.
Ridge regression MLT wk 6MLP wk 4least squares with an
ℓ2 penalty:
(XTX+λI)−1XTy.
ROC curve MLP wk 6true-positive rate against false-positive rate as the threshold moves.
S
Sigmoid MLF wk 9MLT wk 91/(1+e−z), an S-curve squeezing any number into (0,1).
Singular value decomposition (SVD) MLF wk 6any matrix equals rotate, stretch, rotate:
A=UΣVT.
Soft margin MLT wk 10an SVM that lets a few points break the rules, at price
C.
Spectral theorem MLF wk 5a real symmetric matrix has real eigenvalues and perpendicular eigenvectors:
A=QΛQT.
Stacking MLP wk 10train a meta-model on the predictions of other models.
Stratified split MLP wk 1a split that keeps the class proportions the same in train and test.
Supervised learning MLF wk 1learning from examples that come with the right answers.
Support vector MLT wk 10MLP wk 8a training point on or inside the margin; only these decide the SVM boundary.
T
Threshold MLP wk 6the score cut-off for calling something positive. Raising it raises precision and lowers recall.
Trace MLF wk 4the sum of the diagonal entries; equals the sum of the eigenvalues.
U
Underfitting MLT wk 5MLP wk 4the model is too simple; poor on training and test data alike.
V
Variance (of a model) MLT wk 6MLP wk 4how much the learned model changes when the training sample changes. Overfitting.
Variance (statistics) MLF wk 10how spread out a random variable is around its mean.
Vector MLF wk 1a list of numbers; a point or an arrow.
W
Weak learner MLT wk 11a model only slightly better than guessing, like a one-question tree (a stump).