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).Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ||
| sample_index | Yes |