SpinTheMic
Pro

Explain it in 60 seconds

Target encoding

Machine Learning · Feature Engineering · Intermediate

What is target encoding, and how do you avoid leakage with it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Replace a category with the average target value for that category.
  • Powerful for high-cardinality features.
  • Leakage if computed on the same rows used for training.
  • Use out-of-fold encoding and smoothing toward the global mean.
  • CatBoost uses ordered target statistics.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics