Leakage is when information unavailable at prediction time sneaks into training, producing unrealistically good validation scores that collapse in production.
Common causes: scaling or imputing on the full dataset before splitting, features derived from the target, duplicates across train and test, and random splits of time-ordered data.
Detect: suspiciously high validation scores, one feature with outsized importance, and a large train-to-production gap.
Prevent: split first, fit all preprocessing on the training set only (use a pipeline), split by group or time when rows are not independent, and review every feature for availability at prediction time.
Loading…