Contents

shap 0.45.0

0

A unified approach to explain the output of any machine learning model.

A unified approach to explain the output of any machine learning model.

Stars: 21509, Watchers: 21509, Forks: 3150, Open Issues: 1233

The shap/shap repo was created 7 years ago and the last code push was an hour ago.
The project is extremely popular with a mindblowing 21509 github stars!

How to Install shap

You can install shap using pip

pip install shap

or add it to a project with poetry

poetry add shap

Package Details

Author
License
MIT License
Homepage
PyPi:
https://pypi.org/project/shap/
Documentation:
https://shap.readthedocs.io/en/latest/index.html
GitHub Repo:
https://github.com/slundberg/shap

Classifiers

  • Scientific/Engineering
  • Scientific/Engineering/Artificial Intelligence
No  shap  pypi packages just yet.

Errors

A list of common shap errors.

Code Examples

Here are some shap code examples and snippets.

GitHub Issues

The shap package has 1233 open issues on GitHub

  • Remove ._old_format() from PermutationsExplainer
  • explanation._old_format() with PermutationExplainer
  • Multi output regressor
  • CatBoostClassifier: SHAP values don't add up to the output
  • Enabling the matplotlib "ax" keyword argument to plot functions
  • [GPUTree] waterfall_plot requires a scalar base_values of the model output as the first parameter, but…
  • File descriptor not closed in CatBoostTreeModelLoader ctor
  • Previous versions' wheels are not kept for all distributions
  • SHAP for Reinforcment Learning
  • Bump follow-redirects from 1.11.0 to 1.14.7 in /javascript
  • Fix _record_gradient attribute error in tensorflow>=2.5.0
  • add dependece_plot 'ymin' and 'ymax' args
  • correct plt to pl
  • cannot import name 'DenseData' and 'visualize' from 'shap'
  • ModuleNotFoundError: No module named 'cv2'

See more issues on GitHub

Related Packages & Articles

thinc 8.2.3

A refreshing functional take on deep learning, compatible with your favorite libraries

tensorflow 2.16.1

TensorFlow is an open source machine learning framework for everyone.

spacy 3.7.4

Industrial-strength Natural Language Processing (NLP) in Python

nlp 0.4.0

HuggingFace/NLP is an open library of NLP datasets.

keras 3.2.0

Keras is a deep learning API written in Python, running on top of the machine learning platform TensorFlow. The core data structures of Keras are layers and models. The philosophy is to keep simple things simple, while allowing the user to be fully in control when they need to (the ultimate control being the easy extensibility of the source code via subclassing).

tensorflow-hub 0.16.1

TensorFlow Hub is a library to foster the publication, discovery, and consumption of reusable parts of machine learning models.