shap

Compute SHAP values and generate global and local model explanations.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/schneidermu/agent-dotfiles --skill shap-schneidermu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: shap
Source: https://github.com/schneidermu/agent-dotfiles/tree/main/codex-skills/shap
Command: npx skills add https://github.com/schneidermu/agent-dotfiles --skill shap-schneidermu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SHAP-based explanations help you understand and trust machine learning model predictions by attributing outputs to individual features using Shapley values.

Core Features & Use Cases

  • Compute SHAP values for any model type (tree-based, deep learning, and linear) and generate global and local explanations.
  • Visualize feature attributions with waterfall, beeswarm, bar, scatter, and force plots to diagnose model behavior, detect bias, and compare models.
  • Apply SHAP in debugging, fairness analysis, feature engineering, and model comparison workflows with practical, end-to-end guidance.

Quick Start

Provide SHAP explanations for a trained model on your dataset and visualize insights.

Frequently Asked Questions about shap

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

FAQPage Schema
How do I explain machine learning model predictions using feature importance?▼

Explain machine learning model predictions by computing SHAP values to attribute outputs to individual features. This generates global and local explanations to help you understand and trust model behavior.

Can I generate SHAP explanations for deep learning and linear models?▼

Yes, you can generate SHAP explanations for deep learning and linear models. The approach supports multiple explainer classes including TreeExplainer, DeepExplainer, KernelExplainer, and LinearExplainer.

What visualizations can I use to diagnose model behavior and detect bias?▼

Visualize feature attributions to diagnose model behavior and detect bias using waterfall, beeswarm, bar, scatter, and force plots. These visualizations help compare models and assess fairness across datasets.

How do I compute SHAP values for a trained model on my dataset?▼

Compute SHAP values by applying the appropriate explainer class to your trained model. You must provide input data formatted as arrays or dataframes within a Python environment that has the SHAP library installed.

When should I use model interpretability techniques in my workflow?▼

Use model interpretability techniques during debugging, fairness analysis, feature engineering, and model comparison workflows. SHAP explanations provide end-to-end guidance to diagnose model behavior and assess fairness across datasets.