shap/shap

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 58 minutes ago
Added to GitGenius on September 2nd, 2026
Created on November 22nd, 2016
Open Issues & Pull Requests: 983 (+0)
GitHub issues: Enabled
Number of forks: 3,740
Total Stargazers: 25,729 (+0)
Total Subscribers: 246 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 8.1 days
Mean response time: 182.5 days
90th percentile: 618.3 days
Tracked items: 791

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 368
New in 7 days: 1
Closed in 7 days: 5
Avg open age: 804 days
Stale 30+ days: 340
Stale 90+ days: 297

Recent activity

Opened in 7 days: 1
Closed in 7 days: 4
Comments in 7 days: 7
Events in 7 days: 16

Top labels

  • stale (471)
  • bug (246)
  • enhancement (109)
  • awaiting feedback (60)
  • visualization (48)
  • deep explainer (40)
  • todo (26)
  • question (24)

Detailed Description

SHAP is a library for explaining machine learning model predictions using game theoretic Shapley values.

The library addresses the challenge of understanding why machine learning models make specific predictions. It applies Shapley values from cooperative game theory to attribute each feature's contribution to a model's output. This approach provides a unified framework that works across different model types—including tree-based models, neural networks, and other architectures—by treating prediction explanation as a problem of fairly distributing credit among input features based on their marginal contributions.

Teams should adopt SHAP when interpretability is a requirement rather than a nice-to-have, particularly in regulated industries or applications where model decisions must be justified to stakeholders. The tool suits projects ranging from debugging model behavior during development to generating explanations for end users. It works well with gradient boosting models, deep learning systems, and general-purpose machine learning pipelines. The library provides multiple explanation methods optimized for different model types, allowing practitioners to balance computational cost against explanation fidelity depending on their constraints.

Development on the project shows consistent activity with regular updates addressing both new features and maintenance. The codebase demonstrates active engagement with issues and pull requests, indicating responsiveness to user needs and bug reports. Documentation is actively maintained alongside code changes, suggesting the maintainers prioritize keeping guidance current with implementation. The project maintains a focus on expanding model support and improving computational efficiency of the explanation algorithms.