dkyazzentwatwa/chatgpt-skills58 installs
ml-model-explainer
Explain ML model predictions using SHAP values, feature importance, and decision paths with visualizations.
How do I install this agent skill?
npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill ml-model-explainerIs this agent skill safe to install?
- Gen Agent Trust Hubfail
This skill is vulnerable to Remote Code Execution (RCE) because it uses the insecure 'pickle' library to load machine learning models from external files. An attacker can provide a malicious model file that executes arbitrary commands on the system when the skill attempts to load it.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
3/3 files flagged
What does this agent skill do?
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
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
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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/dkyazzentwatwa/chatgpt-skills/ml-model-explainer">View ml-model-explainer on skillZs</a>