SHAP single-case explanation / SHAP 单样本解释
shap_explainSHAP single-case explanation / SHAP 单样本解释 | USE WHEN: explain why one patient was predicted high risk (feature contributions) | ALIASES: SHAP, 解释预测, 为什么高风险, 特征贡献, explain prediction, 可解释性 | RETURNS: SHAP 贡献图
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "shap_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_data | No | CSV 文本 | |
| model_type | No | 模型类型 | |
| sample_index | No | 样本序号 |