Skip to content
Back to skills

Ml Model Explainer

ASecurity

Explain ML model predictions using SHAP values, feature importance, and decision paths with visualizations.

  • 99 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 7, 2026
datapythonbash

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add dkyazzentwatwa/chatgpt-skills --skill ml-model-explainer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ml Model Explainer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ml Model Explainer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dkyazzentwatwa-ml-model-explainer/badge)](https://www.skillsdirectory.com/skills/dkyazzentwatwa-ml-model-explainer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ml-model-explainer
description: Explain ML model predictions using SHAP values, feature importance, and decision paths with visualizations.
---

# ML Model Explainer

Explain machine learning model predictions using SHAP and feature importance.

## Features

- **SHAP Values**: Explain individual predictions
- **Feature Importance**: Global feature rankings
- **Decision Paths**: Trace prediction logic
- **Visualizations**: Waterfall, force plots, summary plots
- **Multiple Models**: Support for tree-based, linear, neural networks
- **Batch Explanations**: Explain multiple predictions

## Quick Start

```python
from ml_model_explainer import MLModelExplainer

explainer = MLModelExplainer()
explainer.load_model(model, X_train)

# Explain single prediction
explanation = explainer.explain(X_test[0])
explainer.plot_waterfall('explanation.png')

# Feature importance
importance = explainer.feature_importance()
```

## CLI Usage

```bash
python ml_model_explainer.py --model model.pkl --data test.csv --output explanations/
```

## Dependencies

- shap>=0.42.0
- scikit-learn>=1.3.0
- pandas>=2.0.0
- numpy>=1.24.0
- matplotlib>=3.7.0

Files in this skill

  • SKILL.md1.1 KB
  • scripts/ml_model_explainer.py4.2 KB
  • scripts/requirements.txt79 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.