
Answer-first summary for fast verification
Answer: Target encoding maps categories to their mean target value, which can lead to overfitting if not handled properly.
Target encoding involves mapping categories of a categorical feature to their mean target value, which can be a powerful method for capturing the relationship between the feature and the target variable. However, this method can lead to overfitting, especially if the categories have few observations. To mitigate this risk, techniques such as adding noise, using a hold-out set, or applying regularization can be used. These methods help smooth the target encoding values and reduce the risk of overfitting.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Explain the concept of target encoding for categorical features. Discuss the potential risks associated with this method and how they can be mitigated.
A
Target encoding maps categories to their mean target value, which can lead to overfitting if not handled properly.
B
Target encoding is always unbiased and appropriate for all types of categorical features.
C
Target encoding should not be used for categorical features.
D
Target encoding is only suitable for numerical features.
No comments yet.