The ML cookbook.
Read a full workflow from its question to its result. Every guide shows all its code, explains each stage, and names the limits of the example. These are references to understand, with no exercises or required setup.
← Return to the reading courseA classifier with an honest baseline
Split a built-in dataset, compare a simple baseline, then read the classifier's result.
Training and test data · Baselines · Classification evaluationNumeric and category columns together
Use separate preprocessing paths for numeric and categorical fields without leaking statistics.
Missing values · Category encoding · PipelinesA numeric prediction report
Fit a regression pipeline and report error in the target's unit beside a mean baseline.
Linear regression · Baselines · Regression metricsA rare-class decision report
Show why accuracy hides a rare class and how a threshold changes false alarms and misses.
Classification metrics · Thresholds · BaselinesA text classifier with its vocabulary inside
Fit TF–IDF and a classifier as one object so words from held-out text cannot leak in.
Text as features · Pipelines · ClassificationGroups and a two-dimensional view
Scale numeric rows, fit clusters, then project them for interpretation without calling the picture ground truth.
Clustering · PCA · ScalingTune a pipeline without touching the final test
Compare neighbor counts inside cross-validation, then evaluate the selected procedure once.
Cross-validation · Pipelines · Data splitsA model artifact with an input contract
Save a fitted pipeline, load only a trusted local artifact, and validate the row sent to it.
Pipelines · Deployment · Drift