Explain model predictions with SHAP, LIME, integrated gradients, and permutation importance. Generates summary plots, waterfall charts, and force plots. Use when debugging predictions, auditing for bias, or communicating model behavior to stakeholders.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Explain model predictions with SHAP, LIME, integrated gradients, and permutation importance. Generates summary plots, waterfall charts, and force plots. Use when debugging predictions, auditing for bias, or communicating model behavior to stakeholders.
Generate model explanations with SHAP, LIME, integrated gradients, and permutation importance.
Quick start
# Auto-detect model type and run SHAP
uv run ${CLAUDE_SKILL_DIR}/scripts/shap_explain.py model.joblib data/test.csv
# Output: explanations/shap_summary.png
Methods by model type
Model type
Recommended explainer
sklearn tree (RF, XGBoost)
SHAP TreeExplainer
sklearn linear
SHAP LinearExplainer
PyTorch/TF
SHAP DeepExplainer or captum
Any black-box
SHAP KernelExplainer (slow) or LIME
Plots
shap.summary_plot() — global feature importance (beeswarm)
shap.waterfall_plot() — single prediction breakdown