Contents

shap 0.50.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: 25038, Watchers: 25038, Forks: 3474, Open Issues: 592

The shap/shap repo was created 9 years ago and the last code push was 9 hours ago.
The project is extremely popular with a mindblowing 25038 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 592 open issues on GitHub

  • build(deps): bump lodash from 4.17.21 to 4.17.23 in /javascript
  • Support for channel-wise partitionshap
  • build(deps): bump qs and express in /javascript
  • rendering colors in SHAP text visualizations
  • Failed Additivity Check
  • Unpin numba on 3.14
  • Make shap.plots.text compatible with numpy2.
  • BUG: shap plot text not color in highlightings in Colab
  • ENH add nsamples parameter to KernelExplainer call method
  • ENH: CoalitionExplainer efficiency
  • AttributeError: 'Sequential' object has no attribute 'predict'
  • BUG: warnings
  • ENH: Fit the model on entire dataset, vs doing a train/test split
  • ENH: Keep row index in explanations of DataFrames
  • BUG: PermutationExplainer does not expose output_names

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.20.0

TensorFlow is an open source machine learning framework for everyone.

spacy 3.8.11

Industrial-strength Natural Language Processing (NLP) in Python

nlp 0.4.0

HuggingFace/NLP is an open library of NLP datasets.

keras 3.13.2

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.