Install
Supervised and Unsupervised Learning articles
FoundationsMachine 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.FoundationsFeatures, 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.FoundationsHypothesis 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.FoundationsLoss 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.FoundationsTraining 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.FoundationsOverfitting 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.FoundationsThe 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.FoundationsInductive 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.FoundationsNo 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.FoundationsParametric 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.FoundationsDiscriminative 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.FoundationsHow 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.FoundationsWhen 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.FoundationsChoosing 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.FoundationsWhy 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.FoundationsRegression, 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.FoundationsSelf-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.FoundationsSemi-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.FoundationsOnline 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.FoundationsPrediction 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.FoundationsEstimating 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.