foryourhealth111-pixel/Vibe-Skills / bundled/skills/explaining-machine-learning-models
explaining-machine-learning-models
VerifiedExplain trained machine learning models through feature attribution, local explanations, and behavior summaries. Use as an explicit/manual helper once a model already exists, not for training ownership, leakage auditing, or general ML strategy selection.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.5 KB |
| assets/README.md | markdown | 362 B |
| assets/example_explanation.json | config | 3.5 KB |
| assets/explanation_template.html | other | 3.8 KB |
| assets/visualization_styles.css | other | 2.5 KB |
| references/README.md | markdown | 551 B |
| scripts/README.md | markdown | 407 B |
| scripts/data_preprocessing.py | script | 2.8 KB |
| scripts/explain_model.py | script | 2.9 KB |
| scripts/feature_importance.py | script | 2.8 KB |
assets/example_explanation.json
View on GitHub{
"_comment": "Example JSON output for a model explanation. This is a template for the model-explainability-tool plugin.",
"model_id": "model_v3.2",
"model_type": "Classification",
"dataset_used": "customer_churn_dataset.csv",
"explanation_type": "SHAP",
"explanation_timestamp": "2024-01-26T10:30:00Z",
"global_explanation": {
"_comment": "Global feature importance ranking.",
"feature_importance": [
{
"feature": "contract_length",
"importance_score": 0.35,
"description": "Length of the customer's contract (e.g., monthly, yearly)."
},
{
"feature": "monthly_charges",
"importance_score": 0.28,
"description": "The customer's monthly bill amount."
},
{
"feature": "total_charges",
"importance_score": 0.22,
"description": "Total amount the customer has paid."
},
{
"feature": "internet_service",
"importance_score": 0.10,
"description": "Type of internet service the customer has (e.g., DSL, Fiber optic)."
},
{
"feature": "online_security",
"importance_score": 0.05,
"description": "Whether the customer has online security."
}
],
"summary": "The model's predictions are most influenced by contract length, monthly charges, and total charges. Internet service and online security have a smaller, but still significant, impact."
},
"local_explanation": {
"_comment": "Explanation for a specific instance/prediction.",
"instance_id": "customer_123",
"predicted_class": "Churn",
"prediction_probability": 0.85,
"feature_contributions": [
{
"feature": "contract_length",
"contribution": -0.40,
"value": "Month-to-month",
"reason": "Month-to-month contracts are highly correlated with churn."
},
{
"feature": "monthly_charges",
"contribution": 0.25,
"value": 75.50,
"reason": "Higher monthly charges increase the likelihood of churn."
},
{
"feature": "total_charges",
"contribution": -0.10,
"value": 200.00,
"reason": "Relatively low total charges suggest the customer is new and more likely to churn."
},
{
"feature": "internet_service",
"contribution": 0.05,
"value": "Fiber optic",
"reason": "Fiber optic service is associated with higher churn rates in this dataset."
},
{
"feature": "online_security",
"contribution": -0.02,
"value": "No",
"reason": "Lack of online security slightly increases churn risk."
}
],
"summary": "This customer is predicted to churn primarily due to their month-to-month contract and high monthly charges. The relatively low total charges also contribute to the prediction."
},
"fairness_metrics": {
"_comment": "Metrics for assessing fairness across different groups.",
"protected_attribute": "gender",
"metric": "Disparate Impact",
"value": 0.95,
"threshold": 0.8,
"status": "Acceptable",
"summary": "The model exhibits acceptable disparate impact across genders, as the value (0.95) is above the threshold (0.8)."
},
"data_bias_detection": {
"_comment": "Results of data bias detection.",
"potential_bias": "Unequal representation of geographic regions in the training data.",
"recommendations": [
"Collect more data from underrepresented regions.",
"Use re-weighting techniques to balance the data."
]
}
}Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |