shapiq.treeΒΆ

Tree-based explanation algorithms for shapiq.

Provides TreeExplainer, the user-facing explainer for tree ensembles, together with the computation algorithms it builds on: QuadratureTreeSHAP (the numerically exact path-dependent default), TreeSHAPIQ, LinearTreeSHAP, and InterventionalTreeSHAPIQ.

Classes

TreeSHAPIQ

The TreeSHAP-IQ computation class.

TreeModel

Internal representation of a single tree used by the shapiq tree explainers.

InterventionalTreeSHAPIQ

Any-order interventional Shapley-interaction explainer for tree models.

InterventionalGame

A cooperative game for interventional tree-based model explanations.

LinearTreeSHAP

Linear TreeSHAP explainer for first-order Shapley values on tree-based models.

QuadratureTreeSHAP

Quadrature-based path-dependent TreeSHAP for values and any-order interactions.