Skip to content
Quantoros

Why should integer-coded nominal categories be declared categorical in histogram boosting?

Classic MLLevel: IntermediateCategorical split semantics

Why should integer-coded nominal categories be declared categorical in histogram boosting?

Hints
  • Integer storage does not imply ordinal meaning.
  • Category subsets differ from numeric intervals.

Answer

Otherwise numeric threshold splits impose an artificial order. Categorical treatment searches partitions of categories; ensure cardinality fits the supported bin limit.

Source and licence: scikit-learn 1.7.2 — ensemble · BSD-3-Clause · answer: Quantoros editorial

Related questions