← Back to directory

Compute ROC-AUC, average precision, Brier score, confusion at a threshold, Youde...

https://www.brainiac.software/api/v1/predictive-analytics/classification-metrics

Overview

Compute ROC-AUC, average precision, Brier score, confusion at a threshold, Youden-optimal threshold and equal-width calibration bins from binary labels and scores. Docs: https://www.brainiac.software/api/predictive-analytics/classification-metrics

Protocol x402 (POST)
Price $0.02
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider ROC, PR, Brier Calibration
Source bazaar
Indexed 2026-11-24 19:01:10

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "calibrationBins": 5, "labels": [ 0, 0, 1, 1, 0, 1, 0, 1, 1, 0 ], "scores": [ 0.1, 0.4, 0.35, 0.8, 0.2, 0.9, 0.6, 0.7, 0.55, 0.3 ], "threshold": 0.5 }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "brier": 0.1425, "calibration": [ { "bin": [ 0, 0.2 ], "fraction": 0, "meanScore": 0.1, "n": 1 }, { "bin": [ 0.2, 0.4 ], "fraction": 0.333333333333, "meanScore": 0.283333333333, "n": 3 } ], "confusion": { "f1": 0.8, "fn": 1, "fp": 1, "precision": 0.8, "recall": 0.8, "threshold": 0.5, "tn": 4, "tp": 4 }, "limitations": [ "ROC-AUC is the Mann-Whitney statistic; PR-AUC is average precision; Youden maximises TPR − FPR over unique scores.", "Outputs are statistical calculations on caller-supplied inputs for human review. They are not legal, medical, credit, t" ], "prAuc": 0.902857142857, "rocAuc": 0.88, "sources": [ { "retrievedAt": "2026-11-14", "source": "Caller-supplied tabular data processed locally", "status": "ok", "url": "https://www.brainiac.software/api/v1/predictive-analytics" } ], "youdenJ": 0.6, "youdenThreshold": 0.55 }, "type": "json" }