Why must feature transformation parameters be learned only from training data?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks why preprocessing parameters such as scaling statistics, imputation values and encodings should be fit on the training split alone. Tests understanding of data leakage, honest model evaluation, train/serve consistency and correct use of pipelines in cross-validation.