How does out-of-fold target encoding prevent target leakage during training?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how out-of-fold target encoding keeps a categorical feature from leaking the training label into the model. Tests your understanding of target encoding, cross-fitting, smoothing for rare categories, and how train-time and inference-time encodings should be computed.