Reference · STOR 323

Glossary: ML Pipeline

The compressed vocabulary from Lecture 3. Extend this file as later lectures add terms — don't redefine terms elsewhere.

Core pipeline

TermMeaning
Task T / Experience E / Performance PThe operational definition of "learning": performance on T improves through experience E, measured by P.
Learning algorithm AA fixed procedure. Reads a dataset D, returns a fitted map: A(D) = f^_D.
Fitted model f^_DData-dependent state produced by training. Stores what was learned; changes when D changes.
TrainingPhase 1: examples → fit → reusable fitted map. D --A--> f^_D
DeploymentPhase 2: new input becomes an action. x --f^_D--> s --δ--> a (predict, then decide, then act).
Decision rule δMaps a score/probability s to an action a. Belongs to the deployed system, not the model.

Model families

TermMeaning
Model family 𝓕The set of candidate functions {f_θ : X → S | θ ∈ Θ} considered before seeing data. Limits what can possibly be learned.
Fitted stateWhat a specific model family stores after training — e.g. coefficients (linear regression), 10 coefficient vectors (softmax regression), or the training set + a metric (kNN).
Parametric vs. nonparametricParametric models (linear/softmax regression) compress D into a fixed-size parameter vector. Nonparametric models (kNN) keep D itself as the fitted state.
SoftmaxConverts per-class logit scores z_k(x) into a probability distribution over classes: p_k = e^{z_k} / Σ e^{z_j}.
LogitA raw per-class score before softmax normalization — "evidence, not probability."
ArgmaxConverts a probability vector into a single predicted label by picking the highest-probability class.
kNN (k-nearest neighbors)Classifies a query point by majority vote among its K nearest training points, under a chosen distance metric.

Evaluation

TermMeaning
MSEMean squared error — average squared distance between predicted and actual numeric values. Answers "how far?" Misses downstream action cost.
ROC / AUCReceiver operating characteristic curve / area under it — measures how well a score ranks positives above negatives across all thresholds. Answers "how well ordered?"
Confusion matrixCounts of TP / FP / FN / TN at one fixed decision threshold. Answers "which errors, and how many?"
Threshold tThe cutoff on a score s(x) that turns it into a binary action: δ_t(s) = 1{s ≥ t}. Changing t trades TPR against FPR — it does not change the underlying model.
TPR (true positive rate / sensitivity)TP / (TP + FN) — fraction of actual positives correctly flagged.
FPR (false positive rate)FP / (FP + TN) — fraction of actual negatives incorrectly flagged.
Group fairness gapThe same threshold t applied to the same model can produce very different FPR/FNR across subgroups G = g. "Equal rule ≠ equal burden."

Neural networks & beyond (Lecture 4)

TermMeaning
Linear separabilityWhether one straight boundary can split two classes perfectly. If not, no perceptron — however trained — can solve the task.
PerceptronLinear regression's classification cousin: z = wTx + b, then a step function h(z) = 1{z ≥ 0} turns the score into a class.
Activation functionTurns a weighted sum into a signal — a step (perceptron), or something smoother (sigmoid, tanh, ReLU) in a neural network.
Multi-layer perceptron (MLP)Perceptrons stacked in layers, each fully connected to the next: h(ℓ) = σ(W(ℓ)h(ℓ-1) + b(ℓ)). Bends the boundary a single perceptron can't.
Neural networkThe broader model family that MLPs belong to — stacked, learned layers, of which many architectures exist.
Credit assignmentThe problem stacking creates: the output was wrong, but which interior weight — layers upstream, not wired to the answer — deserves the blame? The single-layer perceptron rule can't answer it.
BackpropagationThe training algorithm that solved credit assignment: use the chain rule to compute each weight's share of the blame, passing the error backward through the layers. Needs smooth activations — it flows along slopes, and a hard step has none.
AttentionInside a transformer, the mechanism that decides which other positions in the input should influence a given position's meaning — not just its immediate neighbor.
TransformerA neural network architecture built for sequences (text, etc.), stacking attention and feed-forward blocks. Still just a model family: {f_θ}, unfitted until trained.
GPT (Generative Pre-trained Transformer)Not a family — a specific fitted model, f^_D, produced by training the transformer family on a huge text dataset D via next-word prediction.
TokenThe small chunk of text a language model actually counts — roughly ¾ of a word on average, not a whole word. Training-set size and cost are usually measured in tokens, not words.

Homework 1

TermMeaning
Sigmoid σ(z)1/(1+e−z) — squashes any real number into (0,1). σ(0) = 0.5 always, regardless of the data.
Log loss L(β)Average of −[y·log p + (1−y)·log(1−p)] over all training points — "how wrong, on average" for probability predictions, the same role MSE plays for numeric ones.
Gradient L′(β)Which way, and how strongly, to move β to reduce L(β). Zero at a minimum; its sign tells gradient descent which direction to step.
Gradient descent stepβ(1) = β(0) − η·L′(β(0)) — subtract the gradient, scaled by a learning rate η, from the current parameter.
Learning rate ηA hyperparameter controlling step size in gradient descent — not fitted from data.
Separation (separability)When a single feature (or line) perfectly divides the classes. Under separation, unregularized logistic regression drives |β| toward infinity chasing ever-lower loss.
L2 regularization / ridge penaltyλ‖β‖₂² added to the loss. Favors many small coefficients over a few large ones ("distributed shrinkage") — geometrically, a round constraint region.
L1 regularization / lasso penaltyλ‖β‖₁ added to the loss. More readily produces exact zeros — geometrically, a cornered (diamond) constraint region whose corners sit on the axes.
HyperparameterA value set before training (e.g. λ, η) rather than fit from data. Chosen via a validation split; the test split stays untouched for final evaluation.
Multiclass log loss−log py(x) — penalizes low probability on the true class only. Can disagree with classification error, since error only checks whether argmax was correct.
Capacity constraintA limit on how many flagged cases can actually be acted on, independent of the model or threshold — handled by ranking and acting on the top-k, not by retraining.
Grouped (by-entity) splitA held-out split where every row belonging to one entity (a student, a writer) goes entirely into training or entirely into holdout — never both — so evaluation doesn't leak "I've seen this one before."
Something here unclear, or you spot an error? Ask your teaching agent — that's what it's for.