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

Fix interventional TreeSHAP vs KernelSHAP xgboost example #703

Merged
merged 4 commits into from Jul 4, 2022

Conversation

RobertSamoilescu
Copy link
Collaborator

This PR fixes the issue #485 related to the inconsistency between the interventional TreeSHAP vs KernelSHAP for xgboost example. In addition, it fixes the local accuracy property which now holds.

The issue seem to have been caused by a limitation/issue/bug of interventional TreeSHAP which works properly with only up to 100 instances in the background dataset. This issue has been reported here and here.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov
Copy link

codecov bot commented Jun 20, 2022

Codecov Report

Merging #703 (583f22d) into master (efac30c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #703   +/-   ##
=======================================
  Coverage   80.55%   80.55%           
=======================================
  Files         105      105           
  Lines       11790    11790           
=======================================
  Hits         9497     9497           
  Misses       2293     2293           

@RobertSamoilescu RobertSamoilescu marked this pull request as draft June 20, 2022 17:01
@jklaise jklaise changed the title Fixed interventinal TreeSHAP vs KernelSHAP xgboost example Fix interventional TreeSHAP vs KernelSHAP xgboost example Jun 21, 2022
@jklaise jklaise marked this pull request as ready for review June 21, 2022 12:28
@review-notebook-app
Copy link

review-notebook-app bot commented Jun 21, 2022

View / edit / reply to this conversation on ReviewNB

jklaise commented on 2022-06-21T12:37:09Z
----------------------------------------------------------------

I would rephrase and remove "Unfortunately" and add "the upstream implementation..." so it's clear the issue primarily lies with the shap package


@review-notebook-app
Copy link

review-notebook-app bot commented Jun 21, 2022

View / edit / reply to this conversation on ReviewNB

jklaise commented on 2022-06-21T12:37:10Z
----------------------------------------------------------------

Can you remind me what the reason for this not holding originally was?


RobertSamoilescu commented on 2022-06-21T15:37:25Z
----------------------------------------------------------------

I believe was a previous issue that was fixed.

@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

jklaise commented on 2022-06-21T12:37:11Z
----------------------------------------------------------------

Good to add the reason to this comment, i.e. something about the maximum number of enumerable subsets.


Copy link
Collaborator Author

I believe was a previous issue that was fixed.


View entire conversation on ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants