agentsclimarketplace

Explain

Skill damionrashford/mlx/skills/explain

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.From its SKILL.md

Install
npx -y skills add damionrashford/mlx --skill explain

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.0 KB, as published. Nobody here has run it

Explain Skill

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 typeRecommended explainer
sklearn tree (RF, XGBoost)SHAP TreeExplainer
sklearn linearSHAP LinearExplainer
PyTorch/TFSHAP DeepExplainer or captum
Any black-boxSHAP KernelExplainer (slow) or LIME

Plots

  • shap.summary_plot() — global feature importance (beeswarm)
  • shap.waterfall_plot() — single prediction breakdown
  • shap.force_plot() — interactive prediction visualization
  • shap.dependence_plot() — feature interaction effects
  • PartialDependenceDisplay — marginal effect of one feature

When to use each

  • SHAP: most accurate, works for any model, gold standard
  • LIME: fast approximation, good for text and images
  • Integrated gradients: neural nets only, attribution to input features
  • Permutation importance: model-agnostic, measures drop in metric when feature shuffled

See references/explainability-guide.md for complete documentation and code examples.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.