shap

Attribute input feature contributions to model predictions using SHAP values.

321|26|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/mkurman/tamux --skill shap-mkurman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shap
Source: https://github.com/mkurman/tamux/tree/main/skills/scientific-skills/shap
Command: npx skills add https://github.com/mkurman/tamux --skill shap-mkurman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

SHAP-based explanations help you understand why a model made a specific prediction by attributing contributions to individual features using Shapley values.

Core Features & Use Cases

  • Global feature importance and local explanations for tree-based, deep, linear, and black-box models.
  • SHAP interactions and explanation visualizations (waterfall, beeswarm, bar, scatter, force, heatmap).
  • Debugging model behavior, auditing fairness, and comparing models across datasets.

Quick Start

Explain a single prediction by computing SHAP values and visualizing the contributions for the given input.

Frequently Asked Questions about shap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I explain model predictions using SHAP values?

Model predictions are explained using SHAP values by attributing the contribution of each input feature to the final output, enabling both global feature importance analysis and local explanations for specific instances.

What types of machine learning models can I interpret with SHAP?

SHAP supports interpreting tree-based ensembles, deep networks, linear models, and black-box predictors using dedicated explainers like TreeExplainer, DeepExplainer, LinearExplainer, and KernelExplainer.

How do I visualize feature attribution for a machine learning model?

Feature attribution is visualized through SHAP workflows that generate plots like waterfall, beeswarm, bar, scatter, force, and heatmap charts to illustrate how individual features drive model decisions.

Can I analyze feature interactions and debug model behavior using SHAP?

SHAP allows analyzing feature interactions and debugging model behavior by calculating interaction values, auditing fairness, and comparing model performance across different datasets.

Do I need background data to calculate SHAP values for black-box predictors?

Background data is required for baseline calculation when using KernelExplainer to interpret black-box predictors, ensuring accurate Shapley value approximations for your feature attributions.