What is the primary risk of using Target Encoding on a categorical feature with high cardinality?

Data Science Hard

Data Science — Hard

What is the primary risk of using Target Encoding on a categorical feature with high cardinality?

Key points

  • Target encoding maps categories to target means.
  • High cardinality increases risk of memorization.
  • Overfitting occurs due to target leakage.

Ready to go further?

Related questions