-
Notifications
You must be signed in to change notification settings - Fork 4k
Interaction constraints #2884
Description
Feature interaction
Monotonicity constraints is one way to make the black-box more intuitive and interpretable. For tree based models, using Interaction constraints is another highly interesting possibility: Passing a nested list like [[0, 1], [2]] specifies which features may be selected in the same tree branch, see explanations in dmlc/xgboost#4075 in general and https://discuss.xgboost.ai/t/feature-interaction-constraint-overlap/506 for what happens if the sets overlap.
Quoting hcho3: "Let S the set of features used in all the ancestor nodes of the proposed split (plus itself). The proposed split is admitted whenever at least one set in the interaction constraint is a superset of S."
I think this would be a big step towards making boosted trees more interpretable and to e.g. being able to specify "additive" components as well as to reflect ethical constraints into a model.