{"slug":"www-brainiac-software-api-v1-predictive-analytics-classifica-e3ea05","title":"Compute ROC-AUC, average precision, Brier score, confusion at a threshold, Youde","host":"www.brainiac.software","method":"POST","resource":"https://www.brainiac.software/api/v1/predictive-analytics/classification-metrics","category":"other","description":"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","price_listed":0.02,"price_asked":0.02,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":322,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"calibrationBins":{"description":"calibration Bins supplied by the caller for this operation.","example":5,"maximum":100,"minimum":2,"type":"integer"},"labels":{"description":"labels supplied by the caller for this operation.","example":[0,0,1,1,0,1,0,1,1,0],"items":{"type":"number"},"type":"array"},"scores":{"description":"scores supplied by the caller for this operation.","example":[0.1,0.4,0.35,0.8,0.2,0.9,0.6,0.7,0.55,0.3],"items":{"type":"number"},"type":"array"},"threshold":{"description":"threshold supplied by the caller for this operation.","example":0.5,"maximum":1,"minimum":0,"type":"number"}},"required":["labels","scores"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":271,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":327,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":318,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":393,"error":null}],"description_full":"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","last_updated":"2026-11-24T14:48:34.34Z","schemes":["exact"]}