ROC curve & AUC / ROC 曲线与 AUC
roc_aucROC curve & AUC / ROC 曲线与 AUC | USE WHEN: the user has a binary gold standard and predicted scores/probabilities and wants AUC, ROC curve, discrimination, or the best cut-off | ALIASES: ROC, AUC, 曲线下面积, 诊断效能, 最佳阈值, cutoff, discrimination, 敏感度特异度, ROC曲线 | RETURNS: AUC、最优阈值、敏感度特异度
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"labels": [
0,
1,
0,
1,
1,
0
],
"scores": [
0.1,
0.9,
0.2,
0.8,
0.7,
0.3
]
},
"name": "roc_auc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | Yes | 真实标签 0/1 | |
| scores | Yes | 预测分数/概率 |