Skip to content
Quantoros

What changes when maxcattoonehot is reduced for a medium-cardinality XGBoost feature?

Classic MLLevel: IntermediateXGBoost · Categorical data

What changes when max_cat_to_onehot is reduced for a medium-cardinality XGBoost feature?

Hints
  • Distinguish split representation from preprocessing.
  • A partition may place several categories on one side.

Answer

More features can use subset partitioning rather than single-category one-hot splits. The parameter selects a split strategy; it does not simply remove rare categories or globally one-hot encode the input matrix.

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

Related questions