Skip to content
Quantoros

Does automatic category recoding teach XGBoost the effect of a category never seen during training?

Classic MLLevel: IntermediateXGBoost · Categorical data

Does automatic category recoding teach XGBoost the effect of a category never seen during training?

Hints
  • Alignment does not create training examples.
  • Decide what unknown means in the product.

Answer

No. Recoding aligns known labels; it cannot infer evidence for an unseen category. Define and validate an unknown-category policy or retrain, rather than assigning an arbitrary existing code.

Source and licence: XGBoost · Categorical data · Apache-2.0 · answer: Quantoros editorial

Related questions