Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →SHAP-based model explainability skill for feature attribution, summary plots, and interaction analysis.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -47% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -55% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 84% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 28% | 0% |
SHAP-based model explainability skill for feature attribution, summary plots, interaction analysis, and model interpretation.
json{ "type": "object", "required": ["modelPath", "dataPath", "explainerType"], "properties": { "modelPath": { "type": "string", "description": "Path to the trained model" }, "dataPath": { "type": "string", "description": "Path to data for explanation" }, "explainerType": { "type": "string", "enum": ["tree", "deep", "kernel", "linear", "gradient"], "description": "Type of SHAP explainer to use" }, "analysisConfig": { "type": "object", "properties": { "numSamples": { "type": "integer" }, "backgroundSamples": { "type": "integer" }, "featureNames": { "type": "array", "items": { "type": "string" } }, "outputIndex": { "type": "integer" } } }, "plotConfig": { "type": "object", "properties": { "plotTypes": { "type": "array", "items": { "type": "string", "enum": ["summary", "bar", "waterfall", "force", "dependence", "interaction"] } }, "maxFeatures": { "type": "integer" }, "outputDir": { "type": "string" } } } } }
json{ "type": "object", "required": ["status", "shapValues"], "properties": { "status": { "type": "string", "enum": ["success", "error"] }, "shapValues": { "type": "string", "description": "Path to SHAP values file" }, "expectedValue": { "type": "number" }, "featureImportance": { "type": "array", "items": { "type": "object", "properties": { "feature": { "type": "string" }, "importance": { "type": "number" }, "rank": { "type": "integer" } } } }, "plots": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "path": { "type": "string" } } } }, "interactions": { "type": "object", "description": "Top feature interactions" } } }
javascript{ kind: 'skill', title: 'Generate SHAP explanations', skill: { name: 'shap-explainer', context: { modelPath: 'models/xgboost_model.pkl', dataPath: 'data/test.csv', explainerType: 'tree', analysisConfig: { numSamples: 1000, backgroundSamples: 100 }, plotConfig: { plotTypes: ['summary', 'bar', 'dependence'], maxFeatures: 20, outputDir: 'explanations/' } } } }
Other measured skills in the registry, with their headline benchmark lift.