{"uid":"cap_DHaN-fddNY0_3VY-1GqDD","slug":"commerce-intent-multiclass-log-loss-calculator-1c4c430b","name":"Commerce Intent Multiclass Log Loss Calculator","description":"Commerce intent - Multiclass log loss: Multiclass log loss for Commerce intent. 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-commerce-intent-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":["browse","purchase","return","other"],"type":"string"},"predicted":{"enum":["browse","purchase","return","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":"browse sample document number 0 for this supplied dataset.","actual":"browse","predicted":"browse","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-1","text":"browse sample document number 1 for this supplied dataset.","actual":"browse","predicted":"browse","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-2","text":"browse sample document number 2 for this supplied dataset.","actual":"browse","predicted":"browse","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-1-0","text":"purchase sample document number 0 for this supplied dataset.","actual":"purchase","predicted":"purchase","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-1","text":"purchase sample document number 1 for this supplied dataset.","actual":"purchase","predicted":"purchase","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-2","text":"purchase sample document number 2 for this supplied dataset.","actual":"purchase","predicted":"purchase","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-2-0","text":"return sample document number 0 for this supplied dataset.","actual":"return","predicted":"return","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-1","text":"return sample document number 1 for this supplied dataset.","actual":"return","predicted":"return","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-2","text":"return sample document number 2 for this supplied dataset.","actual":"return","predicted":"return","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_1g3J1pSyreu_HfCLH-CA0","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 for a commerce intent classifier (browse/purchase/return/other) from up to 200 labelled text records with predicted probabilities.","exampleAgentPrompt":"I have 150 labelled commerce intent records — each with the text, the actual label (browse, purchase, return, or other), the predicted label, and four class probabilities — can you compute the multiclass log loss so I can evaluate how well my classifier is doing?","exampleUseCases":[{"title":"Evaluating a new intent classifier","prompt":"I just trained a commerce intent model and I have 80 labelled test records with the actual labels (browse, purchase, return, or other) and my model's predicted class and four probability scores per record — can you compute the multiclass log loss to see how good it is?"},{"title":"Comparing two model versions","prompt":"I have predictions from two versions of my shopping intent classifier on the same 120 labelled records. Can you calculate the multiclass log loss for version A's predictions so I can compare it to version B?"},{"title":"Validating a naive-Bayes baseline","prompt":"I built a simple naive-Bayes baseline for classifying user intent into browse, purchase, return, or other, and I have 50 test records with actual labels and predicted probabilities. Can you give me the multiclass log loss to see if it's worth deploying?"}],"resultDescription":"Returns a bounded multiclass log loss value computed from the supplied labelled records, quantifying how well the predicted class probabilities align with the actual commerce intent labels (browse, purchase, return, other). Lower values indicate better probability calibration.","failureModes":["Probabilities array does not sum to 1 or contains values outside [0,1]","More than 200 records supplied — exceeds maximum batch size","Missing required fields (id, text, actual, predicted, probabilities) in any record","Probabilities array has fewer or more than 4 elements","Invalid enum value for actual or predicted class","Payment not included or insufficient (0.01 USDC required)"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.01 USDC) multiclass log loss calculation for a commerce intent classifier with exactly four classes (browse, purchase, return, other), without needing to host a model or use a foundation model. Ideal for offline evaluation of small batches (up to 200 records) of labelled predictions from any classifier you already have.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:35.855Z","isFirstParty":false,"canonicalSlug":"commerce-intent-multiclass-log-loss-calculator-1c4c430b"}