CITATION — REFERENCE ENTRY

kn-taxonomy · kapoor2022-leakage

Revision 5b46698b-5b34-4dbd-b576-39703ea9c8bc · 11/27/2026, 6:19:27 PM UTC
Claim ID
kn-taxonomy
Assertion
Kapoor and Narayanan's taxonomy includes: no separate test set; pre-processing, such as imputation or oversampling, done on the whole dataset; feature selection on the whole dataset; duplicates in the dataset; features that are proxies for the outcome; temporal leakage, where the test set contains data from before the training set; non-independence between training and test samples, in the extreme case samples from the same people or units, unless the claim concerns a distribution with the same dependence structure; and sampling bias in the test set.
Quote
[L1.1] No test set. Using the same dataset for training as well as testing the model is a text-book example of overfitting, which leads to overoptimisic performance estimates (Kuhn & Johnson, 2013). ... [L1.2] Pre-processing on training and test set. Using the entire dataset for any pre-processing steps such as imputation or over/under sampling. ... [L1.3] Feature selection on training and test set. Feature selection on the entire dataset results in using information about which feature performs well on the test set to make a decision about which features should be included in the model. ... [L1.4] Duplicates in datasets. ... One instance when this can happen is if a feature is a proxy for the outcome variable (Kaufman et al., 2012). ... [L3.1] Temporal leakage. When an ML model is used to make predictions about a future outcome of interest, the test set should not contain any data from a date before the training set. ... [L3.2] Nonindependence between train and test samples. Nonindependence between train and test samples constitutes leakage, unless the scientific claim is about a distribution that has the same dependence structure. In the extreme (but unfortunately common) case, train and test samples come from the same people or units. ... [L3.3] Sampling bias in test distribution. Sampling bias in the choice of test dataset can lead to data leakage.
Quote language
en
Locator
section: 2.4 A taxonomy of data leakage
Available in