HistGradientBoosting* interaction constraints
See original GitHub issueDescribe the workflow you want to enable
I’d like to use HistGradientBoostingClassifier
and HistGradientBoostingRegressor
with the possibility to set interaction constraints for certain features. As said in https://github.com/microsoft/LightGBM/issues/2884#issue-577348269, it is one way to make those black boxes more intuitive and interpretable. In addition, it makes it much more easy to marginalize over those features.
Additional context
LightGBM has interaction_constraints
, see their docs. XGBoost has them, see their docs.
Have also a look at the XGBoost tutorial on interaction constraints for a nice visualization and for potential benefits:
- Better predictive performance from focusing on interactions that work – whether through domain specific knowledge or algorithms that rank interactions
- Less noise in predictions; better generalization
- More control to the user on what the model can fit. For example, the user may want to exclude some interactions even if they perform well due to regulatory constraints
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Feature Interaction Constraints — xgboost 1.7.2 documentation
Feature interaction constraints allow users to decide which variables are allowed to interact and which are not. Potential benefits include: Better predictive ...
Read more >sklearn.ensemble.HistGradientBoostingClassifier
Specify interaction constraints, the sets of features which can interact with each other in child node splits. Each item specifies the set of...
Read more >Gradient boosting? | Philip's Curve
Feature interaction constraints. In tree-based models, each additional level introduces interactions to the model. Interactions are where ...
Read more >Feature Interaction Constraints in XGBoost, LightGBM and ...
Feature Interaction constraints allow a user to control which variables are allowed to interact with each other by limiting the variables that can...
Read more >Issues - scikit-learn - scikit-learn - Geeks
Add user friendly string options for interaction constraints in HistGradientBoosting*. #24845 opened 4 days ago by lorentzenchr.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
BTW, interaction constraints for HGBT are listed on the priorities for 2021 from the Technical Committee, point 3 in https://scikit-learn.fondation-inria.fr/technical-committee-november-5-2020-fr/.
@mayer79 Thank you.
A paper that uses more complicated interaction constraints for bundling location related features together is https://dx.doi.org/10.2139/ssrn.3924412.