Machine learning glossary
152 terms you’ll meet in machine learning and AI, each explained in one or two plain sentences and linked to the lesson that animates it.
A · B · C · D · E · F · G · H · I · K · L · M · N · O · P · Q · R · S · T · U · V · W
A
- A/b test: An experiment where real users are randomly split between two versions and real outcomes are…
- Accuracy: The share of all answers that were right.
- Action: A choice the agent can make.
- Activation function: The bend applied after a neuron’s sum, such as ReLU or sigmoid.
- ADAM: A popular optimizer that combines momentum with a separate step size for every weight.
- Agent: In reinforcement learning, the learner that takes actions in a world.
- Ai judge: An AI model used to score other models’ answers, checked against human ratings.
- Anchor: An example or description that shows exactly what each score on a scale means.
- Anomaly: A data point that is unusual compared with the rest.
- API: A way for other programs to send a request to your model over the network and get an answer back.
- Attention: A way for each token to look at the other tokens and pull in the information most relevant to it.
- Attention head: One complete attention calculation. Models run many in parallel, each spotting different…
- AUC: Area under the ROC curve. 1.0 is perfect, 0.5 is coin-flipping.
- Autoencoder: A network that squeezes its input into a small code, then rebuilds it from that code.
B
- Backpropagation: Sending the error backwards through the network to work out how to adjust each weight.
- Bagging: Training many models on bootstrap samples and letting them vote.
- Batch normalization: Re-centering and re-scaling a layer’s outputs for each batch so training stays stable.
- BIAS: Being wrong in the same direction every time, usually because the model is too simple.
- Boosting: Training small models one after another, each fixing the mistakes of the ones before.
- Bootstrap: A random sample of the data, drawn with replacement, so some rows repeat and others are left out.
- Bottleneck: The narrowest layer of an autoencoder, where the input must be summarized in just a few numbers.
C
- Centroid: The center of a cluster: the average position of its points.
- Channel: One layer of an image, like the red, green or blue values.
- Classification: Predicting a category (spam or not, cat or dog) instead of a number.
- Cluster: A group of points that are close to each other.
- Confusion matrix: A 2 × 2 table counting each kind of right and wrong answer.
- Convolution: Sliding a small filter across an image, multiplying and adding at every position.
- Core point: In DBSCAN, a point with enough neighbors close by to be the heart of a cluster.
- Cross-entropy: A loss for classification: small when the model is confident and right, huge when confident and…
- Cross-validation: Testing a model several times, each time holding out a different slice of the data.
D
- Data leakage: When information about the answer sneaks into training, making scores look better than reality.
- Data pipeline: The automated steps that collect, clean, check and store data for a model.
- Decision boundary: The line (or curve) where the model switches from one answer to the other.
- Dendrogram: A tree diagram that shows the order in which groups were merged.
- Deployment: Putting a trained model where it can make predictions for real users.
- Derivative: The slope of a curve at one point: how fast it goes up or down.
- Diffusion model: A model that learns to remove noise step by step, so it can turn pure static into a new image.
- Dimensionality reduction: Squeezing data with many features down to a few, while keeping its shape.
- Discount: How much less a future reward counts than an immediate one.
- Discriminator: In a GAN, the network that tries to tell real examples from generated ones.
- Divergence: When training goes wrong and the error keeps growing instead of shrinking.
- Dot product: Multiply matching numbers in two lists and add them up. Big means “similar”.
- Drift: When the real-world data a model sees slowly (or suddenly) changes from what it was trained on.
- Dropout: Randomly switching off some neurons during training so the network can’t over-rely on any one.
E
- Embedding: A learned list of numbers that represents a token (or a document) so similar meanings sit close…
- Entropy: One way to measure impurity, borrowed from information theory.
- Environment: The world an agent acts in. It responds to each action with a new situation and a reward.
- Epoch: One full pass through all the training examples.
- Experiment tracking: Recording the settings, data and results of every training run so you can compare and reproduce…
- Exploration: Trying actions that might not look best yet, to discover better options.
F
- F1: A single score that balances precision and recall.
- Fairness: Checking that a model’s errors and decisions don’t unfairly disadvantage particular groups of…
- False negative: Said no, but the answer was yes: a miss.
- False positive: Said yes, but the answer was no: a false alarm.
- Feature: One clue about an example, like a house’s size. A column in the table.
- Feature map: The output of one filter: a grid showing where its pattern appears.
- Feature scaling: Putting features on similar number ranges, like 0 to 1.
- Feature vector: All the clues for one example, written as a list of numbers.
- Filter: A small grid of weights that responds to one kind of pattern, like a vertical edge.
- Fine-tuning: Continuing to train a pre-trained model gently on your own data.
- FOLD: One of the equal slices the data is cut into for cross-validation.
- Forward pass: Running an input through the network, layer by layer, to get a prediction.
G
- GATE: A learned on/off valve (from 0 to 1) that decides how much information passes.
- Generator: In a GAN, the network that turns random noise into fake examples.
- GINI: Another common measure of impurity: the chance two random picks from the group disagree.
- Gradient: The slope in every direction at once. It points uphill.
- Grid search: Trying every combination of settings from a list and keeping the best.
- Guardrail metric: A number that must not get worse, such as complaints, even if the main goal improves.
H
- Hidden layer: A layer between input and output. Its neurons build new features.
- Hidden state: The memory a recurrent network carries from one step to the next.
- Human evaluation: People reading a model’s real outputs and judging qualities that are hard to measure…
- Hyperparameter: A setting you choose before training (like the learning rate), rather than one the model learns.
I
- Impurity: How mixed a group is. A group of only one class has impurity 0.
- Initialization: How the weights are set before training starts.
- Inter-rater agreement: How often different raters give the same judgment, beyond what chance would produce.
K
- K: In k-nearest neighbors, how many nearby examples get a vote.
- Kappa: A score for agreement beyond chance: 0 means no better than chance, 1 means perfect agreement.
- Kernel trick: A shortcut that lets a model separate data as if it had been lifted into extra dimensions, so a…
- KEY: In attention, a vector saying what this token contains, to be matched against queries.
L
- Label: The right answer for an example, the thing we want the model to guess.
- Latent space: The space of hidden codes a model uses. Nearby points mean similar things.
- LEAF: An end point of a decision tree. It holds the final answer.
- LORA: Low-rank adaptation: fine-tuning by training small add-on matrices instead of the whole model.
- LOSS: One number that says how wrong the model is. Lower is better.
- LSTM: Long short-term memory: a recurrent network with gates that control what to remember and forget.
M
- Margin: The empty gap between the dividing line and the nearest points.
- Markov decision process: The standard frame for decision problems: states, actions, chances of what happens next, and…
- Matrix: A grid of numbers, made of rows and columns.
- Mean squared error: A loss: square each miss, then take the average.
- Model: The thing that learns. After training it takes an input and gives back a guess.
- Momentum: Carrying some of the previous step forward, so training rolls smoothly instead of zigzagging.
N
- Naive: Here: treating each clue as if it had nothing to do with the others.
- Neighbors: The examples closest to a new point.
- Neuron: A tiny unit that adds up its weighted inputs and passes the result through an activation.
- NORM: The length of a vector.
- Normal distribution: The bell-shaped pattern many natural measurements follow.
O
- Overfitting: The model memorized the training examples, noise included, and fails on new ones.
P
- Pairwise comparison: Showing two answers side by side and asking which one is better.
- Perceptron: The simplest artificial neuron: a weighted sum followed by a yes/no threshold.
- Pixel: One tiny square of an image, stored as a number (or three numbers for color).
- Policy: The strategy an agent has learned: which move to make in each situation.
- Policy gradient: A method that directly adjusts the policy’s action probabilities toward actions that led to high…
- Pooling: Shrinking a feature map by keeping one number (often the biggest) from each small block.
- Position bias: The tendency to favor whichever answer is shown first (or on one side), regardless of quality.
- Positional encoding: Extra numbers added to each token that tell the model where it sits in the sentence.
- Precision: When the model says yes, how often is it right?
- Prediction: The model’s guess for an example it is shown.
- Pretraining: The first, huge training run where a model learns to predict the next token on vast amounts of text.
- Principal component: A direction in the data along which it spreads out a lot. PCA keeps the biggest ones.
- Proxy: A feature that quietly stands in for a sensitive one, like a postcode standing in for ethnicity or…
Q
- Q-value: The expected total future reward for taking a particular action in a particular state.
- Query: In attention, a vector saying what this token is looking for.
R
- RAG: Retrieval-augmented generation: fetching relevant documents and giving them to the model before it…
- Random forest: Many decision trees, each trained on random rows and random features, voting together.
- Rating scale: A fixed set of scores, like 1 to 5, that raters use to judge each answer.
- Recall: Of all the real yes cases, how many did the model find?
- Recurrent network: A network that reads a sequence one step at a time, carrying a memory forward.
- Red-teaming: Deliberately trying to make a system fail, so its weaknesses are found and fixed before launch.
- Regularization: A penalty that keeps a model’s weights small so it stays simple and doesn’t memorize.
- RELU: An activation: 0 for negative inputs, the input itself for positive ones.
- Residual: How far off a guess was: the true value minus the guess.
- Reward: A score the world gives after an action: good moves earn more.
- Reward model: A model trained to predict which answers people would prefer.
- RLHF: Reinforcement learning from human feedback: tuning a model toward answers people prefer.
- Roc curve: A curve showing catches versus false alarms for every possible cutoff.
S
- Scalar: A single number.
- Schedule: A plan for changing the learning rate during training, usually shrinking it.
- Sigmoid: An S-shaped squasher that turns any number into a value between 0 and 1.
- Skip connection: A shortcut that adds a block’s input to its output, so very deep networks keep learning.
- Slope: How steep something is. Positive goes up to the right, negative goes down.
- Softmax: Turns a list of scores into chances that add up to 100%.
- Standard deviation: The typical distance from the mean. The square root of variance.
- State: What the agent observes about its situation right now.
- Support vectors: The few points right at the edge of the margin. They decide where the line goes.
T
- Tensor: A grid of numbers with any number of dimensions: a list, a table, a stack of tables…
- Test set: Examples hidden during learning, used at the end to check the model fairly.
- Threshold: The cutoff. Above it we say “yes”, below it “no”.
- Token: A small piece of text, like a word or part of a word, that a language model reads.
- Training set: The examples the model is allowed to learn from.
- Transfer learning: Starting from a network already trained on a big task and adapting it to yours.
- Transformer: A neural network built from stacked blocks of attention and feed-forward layers.
U
- Underfitting: The model is too simple and misses the real pattern.
V
- Validation check: An automatic test that data looks sensible, like ages between 0 and 120.
- Validation set: A second hidden set used to tune settings, so the test set stays untouched.
- Value: In attention, the information a token hands over when it is attended to.
- Variance: How spread out numbers are: the average squared distance from the mean.
- Vector: A list of numbers. It can also be drawn as an arrow.
- Vector search: Finding stored items whose embeddings are closest to a query’s embedding.
- Vocabulary: The fixed list of all tokens a model knows, each with its own ID number.
W
- Weak learner: A simple model that is only a little better than guessing.
- Weight: A number on a connection that says how much one input matters. Learning means adjusting weights.
- Win rate: The share of side-by-side comparisons that one version wins.