Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT refactor feature_perturbation in Tree explainers #2624

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

glemaitre
Copy link
Contributor

The switch between "interventional" to "tree_path_dependent" being silent is quite surprising.

Instead, I would propose to have an "auto" method that would switch to the method depending if the background dataset provided.

Then when providing a specific algorithm, we will in the future raise an error if the conditions are not met to run the algorithm. For the moment, I propose to raise a FutureWarning to ask the user to change to "auto" if this is really what they want (and therefore keep the code backward compatible).

I find this way more explicit, knowing that "tree_path_depedent" might have an important impact on the symmetric axiom expected by the users.

@codecov
Copy link

codecov bot commented Jul 19, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.64%. Comparing base (45b85c1) to head (75fa464).
Report is 464 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2624       /-   ##
==========================================
  Coverage   51.61%   51.64%    0.03%     
==========================================
  Files          91       91              
  Lines       13146    13153        7     
==========================================
  Hits         6785     6793        8     
  Misses       6361     6360       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

We appreciate your contribution! This Pull Request has been inactive for two years, so it's been automatically marked as 'stale'.

Please leave a comment if you would still like the PR to remain open, and the 'stale' label will be removed.

Otherwise, if there is no activity in the next 90 days the PR will be closed.

@github-actions github-actions bot added the stale Indicates that there has been no recent activity on an issue label Jul 19, 2024
@connortann connortann added todo Indicates issues that should be excluded from being marked as stale enhancement Indicates new feature requests and removed stale Indicates that there has been no recent activity on an issue labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests todo Indicates issues that should be excluded from being marked as stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants