{"uid":"cap_zOVYj42G_nOV1DgFoViMv","slug":"delx-commerce-log-loss-calculator-a6b71b56","name":"Delx Commerce Log-Loss Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/log-loss?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prob":{"type":"number","description":"Input field: prob."},"outcome":{"type":"integer","description":"Input field: outcome."}}},"responseSchema":{"type":"json","example":{"prob":0.7,"schema":"delx/util-log-loss/v1","outcome":1,"log_loss":0.3566749439387324}},"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_5VCcoHTRasoVkIiEXhlWL","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 the log-loss (cross-entropy loss) for a binary prediction given a predicted probability and the actual binary outcome.","exampleAgentPrompt":"Calculate the log-loss for a prediction where my model said the probability was 0.7 and the actual outcome was 1.","exampleUseCases":[{"title":"Evaluate classifier confidence on one prediction","prompt":"My classifier predicted a 0.85 probability but the actual outcome was 0 — can you compute the log-loss so I know how badly it was penalized?"},{"title":"Real-time model scoring in a pipeline","prompt":"As we process each prediction from our fraud model, calculate the log-loss for a predicted probability of 0.3 when the true outcome was 1, so I can track performance per sample."},{"title":"Compare penalty across probability thresholds","prompt":"I want to understand how log-loss changes with different confidence levels — compute the log-loss when the predicted probability is 0.95 and the actual outcome was 0."}],"resultDescription":"Returns a JSON object containing the original probability, the actual outcome, the schema identifier ('delx/util-log-loss/v1'), and the computed log-loss value as a float (e.g. 0.3567 for prob=0.7, outcome=1).","failureModes":["Probability value outside [0,1] range may cause computation error or unexpected result","Missing required fields (prob or outcome) will result in a validation error","Outcome value not 0 or 1 (non-binary) may produce incorrect or undefined results","Network or payment failure via x402 protocol prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call log-loss computation for individual binary classification predictions without setting up your own math library or model evaluation infrastructure. It is ideal for agent pipelines that need to score or audit predictions one at a time with verifiable, micropayment-based access and no API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:56:40.526Z","isFirstParty":false,"canonicalSlug":"delx-commerce-log-loss-calculator-a6b71b56"}