Skip to content
Quantoros

How would you audit whether a tree violates an interaction constraint between two features?

Classic MLLevel: IntermediateXGBoost · Interaction constraints

How would you audit whether a tree violates an interaction constraint between two features?

Hints
  • Look at conditional decisions along one prediction path.
  • Additive trees can contain separate feature groups.

Answer

Inspect root-to-leaf paths, not merely whether both features occur somewhere in the ensemble. A forbidden pair on one path creates a conditional interaction; features in separate additive trees need not interact.

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

Related questions