Skip to content
Quantoros

What does interactionconstraints=[[0,1],[2,3]] permit that a depth-one model does not?

Classic MLLevel: IntermediateXGBoost · Interaction constraints

What does interaction_constraints=[[0,1],[2,3]] permit that a depth-one model does not?

Hints
  • Separate allowed pairs from all possible pairs.
  • Depth restriction removes even permitted interactions.

Answer

It permits nonlinear interactions within each allowed group while preventing cross-group paths. A stump cannot represent even the within-group interaction; constraints are more selective than uniformly limiting depth.

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

Related questions