Leaks in Preparing the Data

A preparation step fit on the whole table before the split, a scaler, an imputer or a step that chooses columns, learns from the rows it will be tested on, which barely moved StreamBox's score for a scaler but turned a worse model into one that looked better when columns were chosen against the label, and putting every step that learns in a pipeline that cross-validation fits inside each fold closes the leak.

By

Updated

Cheat sheet: Leaks in Preparing the Data
Category
Machine Learning
Level
Freelancer
Tags
ai, Cross-Validation, Data Leakage, Feature Selection, Pipeline (python), python, StandardScaler