Skip to content

Track T21

Machine Learning Foundations

Splits, leakage, bias–variance and baselines.

Unit 1Framing a prediction problem

· 3 lessons
  1. 1What a model learnsA model turns features into a prediction by lowering a loss on rows it has seen. The score that matters comes from rows it hasn't.Introductory · 10 min
  2. 2Framing: target, features and the moment of predictionMost failed models were framed badly before any fitting began. Fix the unit, the moment of prediction, the target and the decision first.Introductory · 11 min
  3. 3A baseline firstA score means nothing until you know what a model that ignores every feature would get. Build the ladder from baseline to glass box to strong learner.Introductory · 10 min

Unit 2Honest validation

· 6 lessons
  1. 4Overfitting: why the training score flattersGrow a tree split by split, watch training accuracy climb while new-data accuracy stalls, and learn to spot overfitting on a real run.Introductory · 11 min
  2. 5The locked test setHold rows back, choose with cross-validation, and look at the test score once. See how noisy a small test set is, and why peeking spends it.Introductory · 10 min
  3. 6Cross-validationGive every training row one turn on the held-out side, then read the average and its spread. See what the number of folds trades away.Introductory · 11 min
  4. 7How noisy is a score? Stratified and repeated foldsWith a rare class, an unlucky fold can have no positives at all. Stratify the folds, repeat them when rows are few, and compare the seed's noise with the data's.Applied · 10 min
  5. 8Split the way it will be used: groups and timeRandom folds assume independent rows. Repeat customers and time series break that, and the score looks better than the model is. Match the split to deployment.Applied · 12 min
  6. 9Choosing inflates the winnerThe best of many noisy scores is too good, even when every score is honest. See the winner's curse, nested cross-validation and what plays the outer loop in the app.Applied · 11 min

Unit 3Leakage and preparation

· 2 lessons
  1. 10A leakage hunt: when a great score is the warningFour leaks, four symptoms. Reproduce each, then use the app's automatic exclusions and the Leakage scan to catch them before anyone deploys the model.Applied · 12 min
  2. 11What each model needs, inside the foldsScaling, imputation and encoding are learned values. Learn which learners need what, and let the plan fit each step on each fold's training rows.Applied · 11 min

Unit 4Complexity

· 4 lessons
  1. 12Bias and varianceError on new data splits into systematic error, wobble between training sets, and noise. Flexibility trades the first for the second, and rows shift the balance.Applied · 12 min
  2. 13When more model lowers error: averaging and double descentAveraging many wobbly models removes variance without adding bias, and very large models can improve again past the point where they fit every row.Advanced · 12 min
  3. 14Regularization: paying for complexityA penalty makes large coefficients expensive. Trace ridge, lasso and elastic-net paths, and find the same idea inside trees, boosters and networks.Applied · 12 min
  4. 15Learning curves: would more data help?Before you spend money on more rows or a bigger model, plot training and validation scores as rows grow. The shapes tell you which spending will pay.Applied · 10 min

Unit 5How models learn

· 3 lessons
  1. 16Gradient descent: how models learnFollow the downhill direction of the loss. See why the learning rate decides whether training works at all, why scaling helps, and which learners use this idea.Applied · 12 min
  2. 17Where training information comes from, and what computes itSupervised and Transformer answer different questions. Separate a model's training signal from its computational structure, and see why each changes how you must evaluate it.Introductory · 11 min
  3. 18Data-type contracts: what each kind of data needsTables, counts, series, text, images, audio and networks each come with their own preparation, their own split rule and their own checks. Read the contract before choosing a method, and split by whatever will be new when the model is used.Applied · 12 min