Contents

shap 0.46.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: 22662, Watchers: 22662, Forks: 3265, Open Issues: 786

The shap/shap repo was created 7 years ago and the last code push was Yesterday.
The project is extremely popular with a mindblowing 22662 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
None
License
MIT License
Homepage
None
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 786 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 9.1.1

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

tensorflow 2.17.0

TensorFlow is an open source machine learning framework for everyone.

spacy 3.8.2

Industrial-strength Natural Language Processing (NLP) in Python

nlp 0.4.0

HuggingFace/NLP is an open library of NLP datasets.

keras 3.6.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.