explain_prediction
Explain a single model prediction by computing SHAP feature contributions. Provide a dataset row index or inline feature values to get a clear breakdown of each feature's impact.
Instructions
Return SHAP breakdown for a single instance.
Parameters
index : int | None Row index in the analyzed dataset. data : dict[str, Any] | None Inline feature dictionary for explaining an arbitrary instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||