When would you use target encoding instead of one-hot encoding?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks when to replace one-hot encoding of a categorical feature with target encoding. It tests your judgment about high-cardinality features, how target leakage creeps into encoded features, and how to handle rare and unseen categories.