Asked about Shaping inputs so the model can use them
What is target encoding and why is it risky?
An answer that works
Replacing a category with the mean target value for that category. It is powerful and leaks the label directly unless computed within each training fold, in which case the offline score looks excellent and production performance collapses.
Reading an answer is not being able to give one. The section that teaches this is Shaping inputs so the model can use them, 6 hours of Feature engineering.
Learn this properly