Skip to content

Commit

Permalink
Bugs fixes and new benchmark code
Browse files Browse the repository at this point in the history
  • Loading branch information
slundberg committed Aug 24, 2021
1 parent 89855e0 commit 9d7de4d
Show file tree
Hide file tree
Showing 37 changed files with 3,966 additions and 636 deletions.
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=print-statement,
disable=unbalanced-tuple-unpacking,
print-statement,
parameter-unpacking,
unpacking-in-except,
old-raise-syntax,
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ install:
- pip install tensorflow xgboost matplotlib ipython codecov torch torchvision pylint sentencepiece
script:
- python -m pytest tests
- pylint tests shap/models shap/maskers shap/explainers/_gpu_tree.py
- pylint tests shap/models shap/maskers shap/explainers/_gpu_tree.py shap/_serializable.py shap/links.py shap/datasets.py
after_success:
- codecov
deploy:
Expand Down
16 changes: 15 additions & 1 deletion docs/benchmarks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,22 @@ These benchmark notebooks compare different types of explainers across a variety
They are all generated from Jupyter notebooks
`available on GitHub <https://github.com/slundberg/shap/tree/master/notebooks/benchmarks>`_.

Tabular
====================
Benchmarks that compare explainers on tabular datasets.

.. toctree::
:glob:
:maxdepth: 1

example_notebooks/benchmarks/tabular/*

Text
====================
Benchmarks that compare explainers on text datasets.

.. toctree::
:glob:
:maxdepth: 1

example_notebooks/benchmark/*
example_notebooks/benchmarks/text/*
217 changes: 217 additions & 0 deletions notebooks/api_examples/explainers/GPUTree.ipynb

Large diffs are not rendered by default.

220 changes: 0 additions & 220 deletions notebooks/benchmark/others/Explainers Benchmark Comparison.ipynb

This file was deleted.

696 changes: 696 additions & 0 deletions notebooks/benchmarks/tabular/Benchmark XGBoost explanations.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,651 changes: 1,583 additions & 68 deletions notebooks/image_examples/image_classification/Image Multi Class.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions shap/.pylintrc2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
generated-members=Explanation.*
Loading

0 comments on commit 9d7de4d

Please sign in to comment.