{"uid":"cap_fd0kswKmcOaeOQc6Uad64","slug":"cancellation-reason-multiclass-log-loss-calculator-47a1e078","name":"Cancellation Reason Multiclass Log Loss Calculator","description":"Cancellation reason - Multiclass log loss: Multiclass log loss for Cancellation reason. Up to 200 supplied labelled text records. Local dataset tools, evaluation and small naive-Bayes baselines; no hosted model or foundation-model training. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded multiclass log loss deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-ml-cancellation-reason-log-loss?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","required":["id","text","actual","predicted","probabilities"],"properties":{"id":{"type":"string","default":"","maxLength":80,"minLength":1},"text":{"type":"string","default":"","maxLength":1000},"actual":{"enum":["price","usage","quality","other"],"type":"string"},"predicted":{"enum":["price","usage","quality","other"],"type":"string"},"probabilities":{"type":"array","items":{"type":"number","default":0,"maximum":1,"minimum":0},"default":[],"maxItems":4,"minItems":4}},"additionalProperties":false},"default":[{"id":"example-0-0","text":"price sample document number 0 for this supplied dataset.","actual":"price","predicted":"price","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-1","text":"price sample document number 1 for this supplied dataset.","actual":"price","predicted":"price","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-2","text":"price sample document number 2 for this supplied dataset.","actual":"price","predicted":"price","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-1-0","text":"usage sample document number 0 for this supplied dataset.","actual":"usage","predicted":"usage","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-1","text":"usage sample document number 1 for this supplied dataset.","actual":"usage","predicted":"usage","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-2","text":"usage sample document number 2 for this supplied dataset.","actual":"usage","predicted":"usage","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-2-0","text":"quality sample document number 0 for this supplied dataset.","actual":"quality","predicted":"quality","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-1","text":"quality sample document number 1 for this supplied dataset.","actual":"quality","predicted":"quality","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-2","text":"quality sample document number 2 for this supplied dataset.","actual":"quality","predicted":"quality","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-3-0","text":"other sample document number 0 for this supplied dataset.","actual":"other","predicted":"other","probabilities":[0.06666666666666667,0.06666666666666667,0.06666666666666667,0.8]},{"id":"example-3-1","text":"other sample document number 1 for this supplied dataset.","actual":"other","predicted":"other","probabilities":[0.06666666666666667,0.06666666666666667,0.06666666666666667,0.8]},{"id":"example-3-2","text":"other sample document number 2 for this supplied dataset.","actual":"other","predicted":"other","probabilities":[0.06666666666666667,0.06666666666666667,0.06666666666666667,0.8]}],"maxItems":200,"minItems":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O0h0gH7usoP6Y8ib_niIx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes multiclass log loss metric for a cancellation reason text classifier across up to 200 labelled records with four classes: price, usage, quality, other.","exampleAgentPrompt":"Calculate the multiclass log loss for my cancellation reason classifier — I have 50 labelled records where each one has the actual label (price, usage, quality, or other), the predicted label, and a 4-element probability vector for each class.","exampleUseCases":[{"title":"Evaluate churn model before deployment","prompt":"I'm about to deploy a subscription cancellation reason classifier and need to check its log loss on my 120 test records — each has the actual reason (price, usage, quality, or other), my model's predicted label, and the four class probabilities. Can you run the multiclass log loss calculation for me?"},{"title":"Compare two classifiers on same holdout set","prompt":"I have two models predicting cancellation reasons and want to compare them. Here are 80 holdout records with actual labels and probability outputs from Model A — compute the multiclass log loss so I can benchmark it against Model B."},{"title":"Audit naive-Bayes baseline quality","prompt":"I built a simple naive-Bayes baseline for classifying why users cancel (price, usage, quality, or other). Can you compute the log loss on these 30 labelled test records with their predicted probabilities to see how far off the baseline is?"}],"resultDescription":"Returns a bounded multiclass log loss value computed over the supplied labelled records, quantifying how well the predicted probability distributions match the actual cancellation reason classes (price, usage, quality, other). Lower values indicate better calibration.","failureModes":["More than 200 records submitted — batch size limit exceeded","Probability vectors not summing to 1 or containing values outside [0,1]","Probability array length not exactly 4 per record","Invalid or unrecognized class label in actual or predicted fields","Empty records array submitted","Missing required fields (id, text, actual, predicted, probabilities) on any record"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.01 USDC) log loss computation for a 4-class cancellation reason text classifier without spinning up local ML tooling. Ideal for evaluating small batches (≤200 records) of probabilistic predictions against ground-truth labels in automated agent pipelines or CI evaluation steps. Prefer this over general-purpose ML platforms when you want a single bounded metric deliverable with no setup overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T00:56:14.521Z","isFirstParty":false,"canonicalSlug":"cancellation-reason-multiclass-log-loss-calculator-47a1e078"}