{"uid":"cap_HdXUmG13GLaTixKMClz0Z","slug":"calibration-court-fit-recalibrate-labels-041ff1e9","name":"Calibration Court – Fit & Recalibrate Labels","description":"Paid (x402, USDC on Base). Fit isotonic calibration on YOUR labelled outcomes ({p,y} pairs) and recalibrate the given probabilities. Statele","url":"https://calibration-court.onrender.com/api/v1/calibrate-labels?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"probs":{"type":"array","items":{"type":"number"}},"examples":{"type":"array","items":{"type":"object","required":["p","y"],"properties":{"p":{"type":"number"},"y":{"enum":[0,1],"type":"integer"}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_U8S9bm7WCsppc8PIx10HW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fits an isotonic calibration model on user-supplied labelled {probability, outcome} pairs and applies it to recalibrate a set of new probabilities.","exampleAgentPrompt":"Calibrate these raw model probabilities using my labelled historical examples — here are 200 {p, y} pairs where p is the model's predicted probability and y is the actual outcome (0 or 1), and I need you to fit an isotonic calibration model on them and then recalibrate this list of new probabilities: [0.9, 0.75, 0.4, 0.2].","exampleUseCases":[{"title":"Recalibrate overconfident classifier scores","prompt":"My fraud detection model is systematically overconfident — I have 500 labelled examples with the model's probability scores and the true fraud labels (0 or 1). Can you fit an isotonic calibration on those and recalibrate these 20 new scores: [0.95, 0.88, 0.76, 0.61, 0.55, 0.42, 0.3, 0.22, 0.18, 0.1, 0.08, 0.05, 0.97, 0.91, 0.83, 0.67, 0.49, 0.35, 0.15, 0.03]?"},{"title":"Fix underconfident churn probability estimates","prompt":"Our churn model outputs probabilities that are too close to 0.5 — it's underconfident. I have 300 labelled {p, y} training examples. Fit isotonic calibration on those and then recalibrate these new churn probability estimates: [0.51, 0.53, 0.48, 0.55, 0.6, 0.45]."},{"title":"Calibrate medical risk scores with clinical data","prompt":"I have clinical outcome data — 150 {p, y} pairs where p is a raw disease risk score and y is whether the patient actually had the event. Please fit isotonic calibration on my labelled examples and apply it to recalibrate these new patient risk scores: [0.12, 0.34, 0.67, 0.81, 0.05, 0.92]."}],"resultDescription":"Returns recalibrated probability values for each input probability in the `probs` array, adjusted using an isotonic regression model fitted on the provided labelled {p, y} examples. The output reflects empirically corrected confidence scores aligned with actual observed outcomes.","failureModes":["Too few labelled examples provided — isotonic regression needs sufficient data points to fit a reliable mapping","Probabilities outside [0,1] range cause validation errors","y values that are not 0 or 1 integers are rejected by the schema","Empty probs or examples arrays may return an error or identity mapping","Payment failure (x402) if USDC balance is insufficient or transaction is rejected","Service unavailable on cold start (Render free tier spin-up latency)"],"whenToPreferThis":"Choose this endpoint when you have your own labelled {probability, outcome} ground-truth data and want to fit isotonic calibration from scratch on that data in a single stateless call. It is distinct from sibling endpoints that apply a pre-built calibration map — here you supply both the training examples and the probabilities to recalibrate in one request. Prefer it when you want a non-parametric, monotonic calibration without assuming a sigmoid or Platt shape.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:34:31.293Z","isFirstParty":false,"canonicalSlug":"calibration-court-fit-recalibrate-labels-041ff1e9"}