explain_prediction_waterfall
Visualize how each feature contributes to a specific machine learning prediction using SHAP waterfall plots to understand model decision factors.
Instructions
Show a SHAP waterfall plot for a single prediction.
The waterfall shows how the base prediction builds up to the final
prediction feature by feature. This is the most detailed SHAP visualization.
Args:
model_id: ID of a registered model (e.g., "gbc_lubricant_quality").
sample_index: Row index in the test dataset to explain (0-based).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_id": "<model_id>",
"sample_index": "<sample_index>"
},
"name": "explain_prediction_waterfall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ||
| sample_index | Yes |