Welcome to the SHAP documentation
SHAP (SHapley Additive exPlanations) is a game theoretic approach to explain the output of any machine learning model. It connects optimal credit allocation with local explanations using the classic Shapley values from game theory and their related extensions (see papers for details and citations).
Install
SHAP can be installed from either PyPI or conda-forge:
pip install shap
or
conda install -c conda-forge shap
GPU support
GPU-accelerated Tree SHAP (shap.GPUTreeExplainer) is provided by the
separate shap-cuda Python package. Install it alongside SHAP using the
cuda extra:
pip install "shap[cuda]"
See the shap-cuda guide for requirements, source builds, and usage.
Introduction
Reference
Development