QUESTION 13 OF 15

How do you avoid leakage in target encoding?

Reveal the answer and explore the explanation.

13
MediumHigh priority

How do you avoid leakage in target encoding?

Answer
Answer

Represents categories using statistics of the target, requiring leakage-aware estimation.

Practical example

Encode high-cardinality categories with out-of-fold target means.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As