question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HistGradientBoosting* interaction constraints

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
lorentzenchrcommented, Nov 3, 2021

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/.

1reaction
lorentzenchrcommented, Oct 24, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found