What problem arises when using label encoding for nominal categorical variables in a linear model?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks what goes wrong when nominal categories are mapped to integer codes and fed to a linear model. Tests whether you can explain the false order and spacing this imposes, why the fit depends on the code assignment, and how one-hot encoding, the dummy variable trap and high-cardinality encodings fit in.