A machine learning engineer is working with a dataset containing a categorical feature with 100 unique values. Which encoding method is most suitable to avoid the curse of dimensionality?

Answer

Target encoding

Explanation

Target encoding replaces categories with the mean of the target variable, reducing dimensionality while preserving information.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list