AI Base

Machine Learning glossary

196 key terms, each in one sentence, with the lesson that teaches it.

ABCDEFGHIJKLMNOPQRSTUVWXYZ#

A

Actor–critic
a policy (actor) trained with a learned value function (critic).
Policy Gradients
Advantage
how much better a reward was than the baseline.
Policy Gradients
Agglomerative
building up by merging.
Hierarchical Clustering
Anomaly (outlier)
a point that does not fit the normal pattern.
Anomaly Detection
AUC
the area under the ROC curve.
ROC and AUC

B

Bag of words
representing text by word counts, ignoring order.
Text Classification with Naive Bayes
Bagging
averaging models trained on bootstrap samples.
Random Forests
Base rate
how common the positive outcome is in a group.
Fairness Metrics
Base rate (prevalence)
how common the positive class is.
Accuracy and the Confusion Matrix
Baseline
a simple model other models must beat.
Linear Regression in Practice
a reference value subtracted to reduce variance.
Policy Gradients
a simple reference model to beat.
The ML Workflow
a trivial model any real model must beat.
Baselines and Error Analysis
Bellman equation
value = best (reward + discounted next value).
Value Functions
Bias
the constant term shifting the boundary.
The Perceptron
Black-box model
a model whose internals are not directly interpretable.
Interpreting Models
Boosting
building a model in rounds, each fixing earlier errors.
Gradient Boosting
Bootstrap sample
a sample drawn with replacement.
Random Forests

C

C
the strictness parameter trading margin width against violations.
Support Vector Machines
Capstone
a project that combines the lessons of a whole subject.
Capstone Classifier End to End
Centroid
the mean position of a cluster.
k-Means Clustering
Class-conditional distribution
the distribution of features within one class.
Generative vs Discriminative Models
Concept drift
the input-to-label rule changes over time.
Distribution Shift
Confusion matrix
the table of TP, FP, FN and TN counts.
Accuracy and the Confusion Matrix
Convergence
the loss settling near its minimum.
The Learning Loop
Convergence theorem
the guarantee of finitely many mistakes when data is separable.
The Perceptron
Covariate shift
the inputs change but the input-to-label rule does not.
Distribution Shift
Cross-validation
rotating validation over k parts of the data.
Train, Validation and Test Sets
Curse of dimensionality
the troubles of sparse, distance-blind high-dimensional data.
The Curse of Dimensionality
Cut
choosing a height on the tree to define the clusters.
Hierarchical Clustering

D

Data leakage
information from outside the training data influencing the model.
Pipelines and Leakage
Decision boundary
where the predicted probability equals the threshold.
Logistic Regression as a Classifier
the surface where two classes are equally likely.
Generative vs Discriminative Models
the edges between regions of different predictions.
Decision Trees
Decision region
the area of input space assigned to a class.
k-Nearest Neighbours
Demographic parity
equal selection rates across groups.
Fairness Metrics
Dendrogram
the tree of merges.
Hierarchical Clustering
Density estimation
modelling how likely each point is.
Anomaly Detection
Depth
the longest chain of questions.
Decision Trees
Dimensionality reduction
compressing to fewer, informative dimensions.
The Curse of Dimensionality
Disaggregated evaluation
measuring performance separately for each group.
Bias in Data
Discriminative model
a model of the boundary or of P(class | x).
Generative vs Discriminative Models
Distance concentration
distances becoming nearly equal.
The Curse of Dimensionality
Distribution shift
a difference between training and deployment data.
Distribution Shift

E

Early stopping
stopping rounds when validation error stops improving.
Gradient Boosting
Elbow method
picking the k where inertia's decline flattens.
Choosing the Number of Clusters
EM algorithm
alternating expectation and maximisation steps.
Gaussian Mixtures and EM
Embedding
a learned dense vector standing for a category.
Encoding Categories
Engineered feature
a new input built from existing ones.
Capstone Classifier End to End
Ensemble
a group of models whose predictions are combined.
Random Forests
Episode
one run from the start state to a terminal state.
Q-Learning
Epoch
one pass through the training data.
The Learning Loop
Equal opportunity
equal true positive rates across groups.
Fairness Metrics
Error analysis
studying mistakes by slice to decide what to fix.
Baselines and Error Analysis
Error mass
the number of mistakes a slice contributes.
Baselines and Error Analysis
Example
one row of the dataset.
Datasets, Features and Labels
Explained variance
the share of total variance a component holds.
Dimensionality Reduction in Practice
Exploitation
choosing what currently looks best.
Bandits and Exploration
Exploration
trying options to learn about them.
Bandits and Exploration

F

F-beta
F-score weighting recall β times as much as precision.
Precision, Recall and F1
F1 score
the harmonic mean of precision and recall.
Precision, Recall and F1
False alarm
a normal point wrongly flagged.
Anomaly Detection
False positive rate
the share of real negatives that are flagged.
ROC and AUC
Feature
an input column the model reads.
Datasets, Features and Labels
Feature attribution
assigning credit for a prediction to its inputs.
Interpreting Models
Feature engineering
creating informative inputs from raw data.
Feature Engineering
Feature map
a function lifting inputs into a new space.
Kernel Methods
Feature scale
the typical size of a feature's values.
Scaling and Normalisation
Feature space
the space of all feature values.
Feature Engineering
Final exam
scoring the test set once.
The ML Workflow
Fold
one of the k parts of the data.
Cross-Validation

G

Generative model
a model of how each class produces data.
Generative vs Discriminative Models
Gini impurity
1 minus the sum of squared class shares.
Impurity and Splits
Global vs local explanation
how a model behaves overall vs why one prediction was made.
Interpreting Models
Gradient
the direction of steepest increase of the loss.
The Learning Loop
Greedy policy
always taking the action with the best one-step lookahead.
Value Functions
Greedy splitting
choosing each split for the best immediate gain.
Decision Trees
Grid search
trying every combination of listed values.
Hyperparameter Tuning

H

High bias (underfitting)
error stays high because the model is too simple.
Learning Curves
High variance (overfitting)
large gap between training and validation error.
Learning Curves
Hinge loss
the penalty max(0, 1 − y · score).
Support Vector Machines
Historical bias
unfairness carried by past labels and decisions.
Bias in Data
Honest estimate
a score not influenced by decisions made on the test data.
Capstone Classifier End to End
Hyperparameter
a setting chosen by the modeller, not learned from data.
Pruning and Overfitting
a setting chosen before training.
Hyperparameter Tuning

I

Impurity
how mixed the classes in a group are.
Impurity and Splits
Imputation
filling missing values with estimates.
Missing Values and Cleaning
Inertia
total squared distance from points to their centres.
k-Means Clustering
Information gain
the drop in entropy from a split.
Impurity and Splits
Input (covariate) drift
feature distributions moving away from training.
Deployment and Monitoring
Interaction feature
a product of two features.
Feature Engineering

K

k
the number of neighbours that vote.
k-Nearest Neighbours
k-fold cross-validation
rotating each fold as the validation set.
Cross-Validation
k-means++
a seeding rule that spreads the starting centres out.
k-Means Clustering
Kernel
a similarity function equal to a dot product in some feature space.
Kernel Methods
Kernel trick
using k(a, b) in place of explicit features.
Kernel Methods

L

Label (target)
the value the model predicts.
Datasets, Features and Labels
Label delay
the lag before true outcomes are known.
Deployment and Monitoring
Laplace smoothing
adding a pseudo-count α to every word count.
Text Classification with Naive Bayes
Lasso (L1)
penalty on the sum of absolute weights.
Ridge and Lasso
Lazy learner
a method that stores the data and computes only at prediction time.
k-Nearest Neighbours
Leakage
using information at training time that will not exist at prediction time.
Datasets, Features and Labels
information from outside the training data reaching the model.
The ML Workflow
Learning curve
error against training set size.
Learning Curves
Learning rate
the step size of each update.
The Learning Loop
Likelihood
the probability of a feature given a class.
Naive Bayes
Likelihood ratio
the likelihood in one class divided by that in another.
Naive Bayes
Linearly separable
classes that a straight line can divide.
The Perceptron
Linkage
the rule for the distance between groups.
Hierarchical Clustering
Local minimum
a stable arrangement that is not the best possible.
k-Means Clustering
Log-likelihood
the log of the probability the model gives the data.
Gaussian Mixtures and EM
Log-odds
the log of the odds; evidence adds in this scale.
Text Classification with Naive Bayes
Loss
a number measuring how wrong the model is.
What Is Machine Learning

M

MAE
mean absolute error.
Regression Metrics
Mahalanobis distance
distance measured in units of the data's own covariance.
Anomaly Detection
Margin
the width of the empty street between the classes.
Support Vector Machines
Markov decision process (MDP)
states, actions, transitions and rewards with the Markov property.
Rewards, States and Policies
Missing at random
blanks unrelated to the value.
Missing Values and Cleaning
Missing flag
a column marking which values were blank.
Missing Values and Cleaning
Mixture model
a distribution formed as a weighted sum of simpler ones.
Gaussian Mixtures and EM
Model
a function with adjustable parameters.
What Is Machine Learning
Model selection
choosing model complexity, here the number of clusters.
Choosing the Number of Clusters
MSE / RMSE
mean squared error and its square root.
Linear Regression in Practice

N

Nearest neighbour
the training point closest to a query.
k-Nearest Neighbours
Nested cross-validation
tuning in an inner loop, estimating in an outer one.
Cross-Validation
Nested validation
doing selection inside the training fold.
Pipelines and Leakage
Node / leaf
a question / a final answer.
Decision Trees
Noise floor
the irreducible error.
Learning Curves
Normalisation (min-max)
rescaling to a fixed range such as 0 to 1.
Scaling and Normalisation

O

Off-policy
learning about one policy while following another.
Q-Learning
One-hot encoding
one column per category with a single 1.
Encoding Categories
Operating point
the chosen threshold's position on the curve.
ROC and AUC
Ordinal encoding
integer codes that respect a real order.
Encoding Categories
Out-of-bag error
error measured on the examples each tree did not see.
Random Forests
Out-of-distribution
inputs unlike anything seen in training.
Distribution Shift
Outlier
a value far from the rest.
Missing Values and Cleaning

P

Parameters
the numbers learning sets, such as the threshold.
What Is Machine Learning
Perceptron
a linear threshold unit trained by mistake-driven updates.
The Perceptron
Performance drift
decay in a metric measured on outcomes.
Deployment and Monitoring
Permutation importance
the score drop when one feature is shuffled.
Interpreting Models
Pipeline
the ordered chain of preparation and modelling steps.
The ML Workflow
preparation and model steps bundled and refitted together.
Pipelines and Leakage
Policy
a rule from states to actions.
Rewards, States and Policies
Policy gradient
adjusting policy parameters to increase expected reward.
Policy Gradients
Polynomial feature
a power of a feature.
Feature Engineering
Post-pruning
growing a large tree, then cutting branches.
Pruning and Overfitting
Posterior
the probability of a class after seeing the features.
Naive Bayes
Pre-pruning
stopping growth early with limits.
Pruning and Overfitting
Precision
the share of flagged cases that are real.
Logistic Regression as a Classifier
Predictive parity
equal precision across groups.
Fairness Metrics
Principal component
a direction of high variance found by PCA.
Dimensionality Reduction in Practice
Prior
the probability of a class before seeing any features.
Naive Bayes
Proxy variable
a feature that stands in for a sensitive attribute.
Bias in Data
Pruning
limiting or trimming a tree to prevent overfitting.
Pruning and Overfitting

Q

Q-value
the expected return of an action in a state.
Q-Learning

R

R²
the share of variation in y the model explains.
Linear Regression in Practice
the share of the target's variation the model explains.
Regression Metrics
Random search
sampling settings at random.
Hyperparameter Tuning
RBF kernel
the similarity exp(−γ‖a − b‖²).
Kernel Methods
Recall
the share of real cases that are flagged.
Logistic Regression as a Classifier
Recall (sensitivity)
the share of real cases that are flagged.
Accuracy and the Confusion Matrix
Reconstruction error
what is lost by keeping fewer components.
Dimensionality Reduction in Practice
Regret
the cumulative reward lost against the best fixed choice.
Bandits and Exploration
Regularisation
a penalty that discourages large weights.
Ridge and Lasso
Reinforcement learning
learning from rewards after actions.
Kinds of Learning
Residual
actual minus predicted value.
Linear Regression in Practice
the current error, actual minus predicted.
Gradient Boosting
Responsibility
the probability that a component produced a point.
Gaussian Mixtures and EM
Return
the discounted sum of future rewards.
Rewards, States and Policies
Reward
the number received after an action.
Rewards, States and Policies
Ridge (L2)
penalty on the sum of squared weights.
Ridge and Lasso
RMSE
root mean squared error.
Regression Metrics
ROC curve
true positive rate against false positive rate across all thresholds.
ROC and AUC
Rollback
returning to a previous model version.
Deployment and Monitoring

S

Sampling bias
a training sample that misrepresents the population.
Bias in Data
Scree plot
the chart of variance per component.
Dimensionality Reduction in Practice
Sealed test set
data kept unseen until the final score.
Capstone Classifier End to End
Search budget
the number of training runs you can afford.
Hyperparameter Tuning
Self-supervised learning
learning where the labels come from the data itself.
Kinds of Learning
Sigmoid
the function 1 / (1 + e^(−z)) that maps scores to probabilities.
Logistic Regression as a Classifier
Silhouette score
how much closer points are to their own cluster than to the next.
Choosing the Number of Clusters
Slice
a subset of examples defined by a shared property.
Baselines and Error Analysis
Sparsity
most of the space containing no data.
The Curse of Dimensionality
Split
a question dividing a group into two.
Impurity and Splits
Stability
whether clusters reappear on resampled data.
Choosing the Number of Clusters
Standardisation
rescaling to mean 0 and standard deviation 1.
Scaling and Normalisation
Stratified
keeping class proportions equal in each fold.
Cross-Validation
Supervised learning
learning from examples with known answers.
Kinds of Learning
Support vector
a point on or inside the street's edge.
Support Vector Machines

T

Target encoding
replacing a category with the average label for it.
Encoding Categories
Target leakage
a feature that encodes the outcome.
Pipelines and Leakage
Temporal-difference error
target minus current estimate.
Q-Learning
Test set
data used once for a final estimate.
Train, Validation and Test Sets
Threshold
the score cut-off that turns a score into a yes/no.
Precision, Recall and F1
Trade-off
gaining on one metric costs on the other.
Precision, Recall and F1
Training
searching for parameters that reduce the loss on the data.
What Is Machine Learning
Training set
data used to fit parameters.
Train, Validation and Test Sets

U

Unsupervised learning
finding structure without answers.
Kinds of Learning

V

Validation set
data used to choose models and settings.
Train, Validation and Test Sets
Value function
the expected return from a state.
Value Functions
Value iteration
repeatedly applying the Bellman update to all states.
Value Functions
Vocabulary
the set of distinct words.
Text Classification with Naive Bayes

W

Weak learner
a small, simple model such as a stump.
Gradient Boosting
Weight decay
the neural-network name for an L2 penalty.
Ridge and Lasso

Z

Z-score
how many standard deviations a value is from the mean.
Scaling and Normalisation

#

ε-greedy
exploring at random with probability ε.
Bandits and Exploration