Foundations

What a model is, how learning from data works, and the ideas every later topic builds on. 42 articles.

Core ideas

Machine Learning for Programmers: What Changes When Rules Come From DataHow your code, tests, bugs and releases change when a program's behavior is fitted from examples instead of written by hand.Features, Labels and Examples: The Vocabulary of a Learning ProblemLearn what examples, features, labels and targets mean, how they map to arrays and shapes, and the traps hidden in each choice.Hypothesis Spaces: What a Model Is Allowed to LearnUnderstand the set of functions a learning algorithm can choose from, why its size matters, and how it splits model error into parts.Loss Functions as the Definition of What a Model Should Get RightSee how squared, absolute, quantile, log and hinge losses each ask a model a different question, with worked numbers for each.Training Error and Generalization Error: The Gap That MattersWhy training scores flatter a model, how held-out data estimates real error, and how much uncertainty that estimate carries.Overfitting and Underfitting Diagnosed With Worked ExamplesSpot overfitting and underfitting from real numbers, using a polynomial experiment you can run, and learn which fix matches which symptom.The Bias-Variance Tradeoff Derived and IllustratedFollow a step-by-step derivation of expected squared error into noise, bias and variance, then check it with a worked numerical example.Inductive Bias: The Assumptions Every Learner Has to MakeWhy data alone cannot decide what happens on new inputs, which assumptions common models build in, and how to choose them on purpose.No Free Lunch Theorems and What They Do Not SayA plain account of the no free lunch results for learning and search, with a small proof you can follow and the common overreadings.Parametric and Nonparametric Models ComparedLearn how models with a fixed parameter count differ from those that grow with data, in assumptions, cost, data needs and extrapolation.Discriminative Versus Generative ClassifiersCompare classifiers that model the boundary with those that model how data arises, using Bayes' rule, a worked spam case and clear trade-offs.

Framing a problem

How to Turn a Business Question Into a Machine Learning ProblemA step-by-step way to move from a vague goal to a defined decision, prediction target, dataset, metric and test of whether it helped.When a Handwritten Rule Beats a Learned ModelA practical guide to choosing between explicit rules, learned models and hybrids, with a cost comparison you can adapt to your own case.Choosing a Prediction Target Without Fooling YourselfDefine a label that matches your real goal, and avoid traps such as weak proxies, selective outcomes, unfinished time windows and leakage.Why Every Machine Learning Project Needs a Simple BaselineLearn which baselines to build first, how to compare a model against them fairly, and how to judge whether the extra complexity earns its keep.Regression, Classification or Ranking: Picking the Right Task TypeChoose between predicting a number, a category or an order by working backward from the decision your model has to support.Self-Supervised Learning: Making Labels From the Data ItselfUnderstand how models learn from unlabeled data by predicting hidden or related parts of it, with worked examples and common pitfalls.Semi-Supervised Learning With a Few Labels and Many ExamplesLearn how pseudo-labels, label propagation and consistency training use unlabeled data, when they help and how to test them honestly.Online Learning and Batch Learning: When Models Update as Data ArrivesCompare batch retraining with online updates, work through the update rule by hand and learn the safeguards a self-updating model needs.Prediction Versus Causal Questions: Why a Good Model Can Mislead a DecisionSee why an accurate predictive model can recommend the wrong action, with a worked confounding example and ways to answer causal questions.Estimating Whether You Have Enough Data to Train a ModelJudge whether your dataset is big enough using learning curves, worked extrapolations and the size of the uncertainty in your test score.

The learning workflow

The Stages of a Machine Learning Project From Question to MonitoringWalk through every stage of a machine learning project, what each one should produce and the checks that tell you whether to continue or go back.A First End-to-End Model on Tabular Data, Step by StepBuild a complete churn model in Python, from inspecting a table through leak-free preprocessing, cross-validation and one final test.Parameters and Hyperparameters: Who Sets WhatLearn which numbers training fits and which you choose, how to search for good settings and why the choice must be made on held-out data.Training, Validation and Test Sets and the Job of EachUnderstand what each data split is for, how to create splits that mirror real use and how a test set quietly loses its value.Reading a Learning Curve to Decide What to Do NextUse training and validation curves to decide whether to gather more data, change the model, fix the optimizer or look for a bug.Error Analysis: Learning From the Examples a Model Gets WrongA step-by-step way to read model mistakes, group them, estimate what fixing each group is worth and choose your next experiment.How to Debug a Model That Will Not Learn AnythingA systematic routine for finding why training loss will not fall, from data checks and baseline losses to gradients and silent shape bugs.Random Seeds and Why Two Training Runs DisagreeFind every source of randomness in a training run, control what you can, and measure seed variation before you believe a gain.Twelve Beginner Mistakes in Machine Learning and How to Catch ThemTwelve common errors in data handling, evaluation and training, each with a symptom to watch for and a concrete test that exposes it.

Learning theory

Empirical Risk Minimization: The Principle Behind Most TrainingSee what training minimizes, why average loss on a sample can stand in for future loss, and where that substitution breaks down.PAC Learning Explained With a Simple ExampleLearn what probably approximately correct means by learning a threshold, deriving the sample size, and checking it by simulation.VC Dimension and the Capacity of a ClassifierUnderstand shattering, work out the VC dimension of simple classifiers, and see what it does and does not say about generalization.Sample Complexity: How Many Examples a Guarantee RequiresCompute how many examples classic learning bounds demand, see what drives the numbers, and learn why practice often needs fewer.Regularization as a Way to Control Model CapacitySee how penalties, constraints and early stopping limit what a model can fit, with ridge and lasso worked out by hand and in code.The Curse of Dimensionality and Why Distances Stop HelpingSee why space empties out as features are added, why nearest and farthest points look alike, and what to do about it.The Manifold Hypothesis and Why High-Dimensional Data Is LearnableWhy images and text with thousands of dimensions can be learned from limited data, how to probe the idea, and where it strains.Double Descent: When More Parameters Reduce Test Error AgainUnderstand why test error can peak as a model starts to fit its training data exactly and then fall again, with code to see it.Occam's Razor and Minimum Description Length in Model SelectionTurn the preference for simpler explanations into a calculation in bits, and compare it with AIC, BIC and cross-validation.Why the Assumption of Independent, Identically Distributed Data MattersLearn what the i.i.d. assumption promises, how groups, time and drift break it, and which splits and checks protect your results.Concentration Inequalities and Why Test Set Estimates Can Be TrustedUse Hoeffding, Chebyshev and Bernstein bounds to say how far a test score can stray from the truth, and learn when they fail.Online Learning Theory and the Idea of RegretUnderstand regret, why following the leader can fail, and how weighted experts and online gradient descent come with guarantees.