When is ordinal encoding appropriate instead of one-hot encoding?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks when ordinal encoding of a categorical feature is the right choice over one-hot encoding. Tests understanding of truly ordered categories, the order and spacing that integer codes imply for linear and distance models, and why tree models tolerate arbitrary codes for nominal features.