Categorical port features: one-hot encoding, target aggregates and leakage
You have a categorical feature such as port_id. Compare one-hot encoding with historical target aggregates for tree models, and explain the leakage risks.
Answer as you would in an interview
Answer aloud or write down a few key points. The text field is optional; the review opens after your attempt.