Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
slundberg authored Mar 23, 2022
2 parents d275e84 + 1d903ff commit 653ac37
Show file tree
Hide file tree
Showing 54 changed files with 40,999 additions and 773 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
run_tests:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python setup.py develop
pip install .[test]
pip install tensorflow xgboost matplotlib ipython codecov torch torchvision pylint sentencepiece
- name: Test with pytest
run: |
python -m pytest tests
- name: Run CodeCov
run: |
codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

---
<a href="https://travis-ci.org/slundberg/shap"><img src="https://travis-ci.com/slundberg/shap.svg?branch=master"></a>
![example workflow](https://github.com/slundberg/shap/actions/workflows/run_tests.yml/badge.svg)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/slundberg/shap/master)
[![Documentation Status](https://readthedocs.org/projects/shap/badge/?version=latest)](https://shap.readthedocs.io/en/latest/?badge=latest)

Expand Down Expand Up @@ -327,6 +327,7 @@ The algorithms and visualizations used in this package came primarily out of res

- For general use of SHAP you can read/cite our [NeurIPS paper](http://papers.nips.cc/paper/7062-a-unified-approach-to-interpreting-model-predictions) ([bibtex](https://raw.githubusercontent.com/slundberg/shap/master/docs/references/shap_nips.bib)).
- For TreeExplainer you can read/cite our [Nature Machine Intelligence paper](https://www.nature.com/articles/s42256-019-0138-9) ([bibtex](https://raw.githubusercontent.com/slundberg/shap/master/docs/references/tree_explainer.bib); [free access](https://rdcu.be/b0z70)).
- For GPUTreeExplainer you can read/cite [this article](https://arxiv.org/abs/2010.13972).
- For `force_plot` visualizations and medical applications you can read/cite our [Nature Biomedical Engineering paper](https://www.nature.com/articles/s41551-018-0304-0) ([bibtex](https://raw.githubusercontent.com/slundberg/shap/master/docs/references/nature_bme.bib); [free access](https://rdcu.be/baVbR)).

<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=189147091855991&ev=PageView&noscript=1" />
81 changes: 0 additions & 81 deletions appveyor.yml

This file was deleted.

1 change: 0 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ datasets

shap.datasets.adult
shap.datasets.boston
shap.datasets.adult
shap.datasets.communitiesandcrime
shap.datasets.corrgroups60
shap.datasets.diabetes
Expand Down
11 changes: 11 additions & 0 deletions docs/text_examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,14 @@ Examples of how to explain predictions from summarization models.
:maxdepth: 1

example_notebooks/text_examples/summarization/*


Question Answering
=============
Examples of how to explain predictions from question answering models.

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

example_notebooks/text_examples/question_answering/*
Loading

0 comments on commit 653ac37

Please sign in to comment.