liveBook · Manning

Margin

As explained in Machine Learning System Design

A measure of the separation between observations and the classifier boundary that determines their predicted classes.

A decision-boundary margin describes how robustly a classifier separates observations into predicted classes. A narrow margin means small sample noise can materially change precision and recall. section 7.4

Compare metric distributions with and without normally distributed noise. Large shifts—such as increased recall paired with decreased precision—signal that the boundary is not robust. section 7.4

Testing boundary robustness

Use Poisson bootstrap samples to estimate metric distributions, then add noise as a hyperparameter. Evaluate bootstrapped lower confidence bounds for recall at a chosen precision or specificity. section 7.4

Distribution of precision and recall with sample size of 200;000; every point is a bootstrapped original dataset, no noise added.
sidebar figure

Inspect the no-noise bootstrap distribution before comparing it with the corresponding noise-added distribution. section 7.4

How Machine Learning System Design covers it

How deep it goes
Explains threshold sensitivity, noise testing, bootstrap distributions, and confidence bounds without deriving classifier geometry.
Examples
Demonstrates robustness using precision-recall distributions, bootstrapped datasets, sample sizes, and added normally distributed noise.
What you can do after
Diagnose boundary fragility by comparing noisy and unnoised metric distributions and reporting bootstrapped lower confidence bounds.
How it connects
Connects decision boundaries with precision, recall, specificity, thresholds, bootstrap, noise, and confidence intervals.

Also explained in

Compare how 2 books explain margin →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.