Why do tree ensembles handle mixed categorical and numerical features better than linear models?
Last updated
Trees split on one feature at a time using only rank order, so mixed units and scales coexist without standardization.
Some implementations split on category subsets directly, and interactions across feature types arise from nested splits. Linear models need one-hot encoding, scaling and manual interaction terms.
Caveat: splits can overfit high-cardinality categoricals (use regularization or CatBoost's ordered statistics), and plain sklearn forests still need numeric encoding.