{"uid":"cap_2MiPVInDWHF4j8qsHL34p","slug":"delx-reliability-curve-cfcb134f","name":"Delx Reliability Curve","description":"Reliability diagram points (mean forecast vs hit rate per bin). Call when plotting calibration without a notebook stack. Returns bins with mean_forecast and hit_rate as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/reliability-curve","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bins":{"type":"integer","description":"Number of calibration bins"},"outcomes":{"type":"array","description":"Binary outcomes 0/1 aligned with forecasts"},"forecasts":{"type":"array","description":"Forecast probabilities in [0,1]"}}},"responseSchema":{"type":"json","example":{"points":[{"n":2,"bin":0,"hit_rate":0,"mean_forecast":0.15},{"n":2,"bin":3,"hit_rate":1,"mean_forecast":0.8500000000000001}],"schema":"delx/util-reliability-curve/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ENH6ITqO0lEV3ufMdNVw6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a calibration reliability curve by binning forecast probabilities against observed binary outcomes to assess forecast accuracy.","exampleAgentPrompt":"Check how well calibrated these forecasts are — I have 8 binary outcomes [0,1,1,0,1,0,1,1] and matching forecasts [0.1,0.9,0.8,0.2,0.7,0.3,0.85,0.75], split them into 5 calibration bins and show me the reliability curve.","exampleUseCases":[{"title":"Calibrating a weather prediction model","prompt":"I ran my weather model over the past month and have 50 daily rain predictions (probabilities) alongside whether it actually rained. Can you compute a reliability curve with 10 bins so I can see if my probabilities are well calibrated?"},{"title":"Evaluating a medical risk score","prompt":"I have a list of predicted disease risk scores and the actual patient outcomes — check how calibrated these predictions are using 8 calibration bins and give me the reliability curve points."},{"title":"Auditing a sports betting model","prompt":"I want to know if my match outcome probability model is trustworthy. Here are the forecasts and actual results for 30 games — compute a reliability curve with 6 bins so I can see how the predicted probabilities compare to real hit rates."}],"resultDescription":"Returns an array of reliability curve points, each containing the bin index, number of samples in that bin (n), the mean forecast probability for that bin, and the actual hit rate (proportion of positive outcomes). Follows the schema delx/util-reliability-curve/v1.","failureModes":["Mismatched array lengths between forecasts and outcomes — likely returns a validation error","Forecasts outside [0,1] range — may produce undefined bin assignments","Zero samples in a bin — bin may be omitted or show undefined hit rate","Invalid bins count (zero or negative) — likely returns a parameter error","Empty forecasts or outcomes arrays — returns empty points array or error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call calibration curve computation without setting up a full ML evaluation library. Ideal for agents that periodically audit forecast quality, validate model outputs in production pipelines, or need to present calibration diagnostics without local compute dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:11:14.710Z","isFirstParty":false}