When is frequency or count encoding preferred over one-hot encoding?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks when replacing a categorical value with its frequency or count works better than one-hot encoding. Tests understanding of high-cardinality features, how tree and linear models use encoded columns, collisions, drift and handling categories unseen in training.