ROC, PR, Brier and calibration metrics
predictive-analytics_classification-metricsCompute ROC-AUC, average precision, Brier score, confusion at a threshold, Youden-optimal threshold and equal-width calibration bins from binary labels and scores. Price $0.02 USDC. POST /api/v1/predictive-analytics/classification-metrics. An unpaid call returns the x402 payment terms and does not run.
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": {
"labels": "<labels>",
"scores": "<scores>"
},
"name": "predictive-analytics_classification-metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | Yes | labels, array. Required. | |
| scores | Yes | scores, array. Required. | |
| threshold | No | threshold, number, from 0 to 1. Required. | |
| calibrationBins | No | calibrationBins, integer, from 2 to 100. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brier | No | brier. Number. | |
| prAuc | No | prAuc. Number. | |
| rocAuc | No | rocAuc. Number. | |
| sources | No | sources. Array. | |
| youdenJ | No | youdenJ. Number. | |
| confusion | No | confusion. Object. | |
| calibration | No | calibration. Array. | |
| limitations | No | limitations. Array. | |
| youdenThreshold | No | youdenThreshold. Number. |