Asked about Features for real tabular problems

What is target encoding and what is its risk?

An answer that works

Replacing a category with the average outcome for that category. The risk is leakage: each row's own label influences its encoding. Compute it out of fold, and smooth rare categories towards the overall mean.

Reading an answer is not being able to give one. The section that teaches this is Features for real tabular problems, 5 hours of Feature engineering.

Learn this properly