ROC 曲线绘制(给定 FPR/TPR)
act_chart_rocROC 曲线绘制(给定 FPR/TPR) 已经算好了 ROC 的坐标点(FPR/TPR),只需要画成出版级图;要算 AUC 请用 act_roc SVG 源码(字段 svg)
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": {
"fpr_list": "<fpr_list>",
"tpr_list": "<tpr_list>"
},
"name": "act_chart_roc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | 图标题 | |
| fpr_list | Yes | 假阳性率序列(一维数组,0~1 单调不减,从 0 到 1)。与 tpr_list 等长;曲线由点连成,点太少会呈折线。 | |
| tpr_list | Yes | 真阳性率序列(一维数组,0~1 单调不减)。与 fpr_list 等长、逐点对应。 | |
| auc_value | No | 图例上要显示的 AUC 值(本接口不重算 AUC) |