-
Notifications
You must be signed in to change notification settings - Fork 258
KernelShap Refactoring #207
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
Conversation
Added this file by mistake.
…into KernelShapChanges
Codecov Report
@@ Coverage Diff @@
## master #207 +/- ##
=======================================
Coverage 85.88% 85.88%
=======================================
Files 49 49
Lines 5470 5470
=======================================
Hits 4698 4698
Misses 772 772 |
… are returned if no user input is provided as opposed to None.
042c31b
to
e385bba
Compare
… build_explanation. Factored out summarisation warnings in a separate method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Alex, looks good to me. Just a few small points, mostly clarifying the use/scope/assumptions of the revamped sum_categories
function.
…rdering in KernelShap docs and fixed typos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note, the 2 binary tree files introduced in this commit be removed from this PR as they presumably relate to the Tree shap PR.
Removed! |
Summary of changes:
rank_by_importance
is no longer a method of theKernelShap
object. It is a standalone function which takes a list of shap values as input and, optionally, a list of feature namestest_rank_by_importance
function accordinglyfeature_names
andcategorical_names
to KernelShap constructor