Skip to content
Quantoros

A three-class XGBoost forest uses two parallel trees per class. How many trees contribute for iterationrange=(0,4)?

Classic MLLevel: IntermediateXGBoost · Prediction

A three-class XGBoost forest uses two parallel trees per class. How many trees contribute for iteration_range=(0,4)?

Hints
  • Count classes and parallel trees inside one round.
  • The upper bound excludes round four.

Answer

For scalar-leaf multiclass trees, 4 rounds × 3 classes × 2 parallel trees = 24. The range indexes boosting rounds, not individual trees; vector-leaf strategies need their own shape contract.

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

Related questions