A machine learning engineer is building a model to predict housing prices. They have a categorical feature 'neighborhood' with 50 unique values. Which encoding method is most appropriate to avoid overfitting?

Answer

Target encoding with smoothing

Explanation

Target encoding with smoothing reduces overfitting by blending category means with the global mean, especially for high-cardinality features.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list