{"uid":"cap_zhjqRQCB4mnECHU8YTEZz","slug":"commerce-intent-confusion-matrix-f4368828","name":"Commerce Intent Confusion Matrix","description":"Commerce intent - Confusion matrix: Confusion matrix 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 confusion matrix deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-ml-commerce-intent-confusion?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","required":["id","text","actual","predicted"],"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"}},"additionalProperties":false},"default":[{"id":"example-0-0","text":"browse sample document number 0 for this supplied dataset.","actual":"browse","predicted":"browse"},{"id":"example-0-1","text":"browse sample document number 1 for this supplied dataset.","actual":"browse","predicted":"browse"},{"id":"example-0-2","text":"browse sample document number 2 for this supplied dataset.","actual":"browse","predicted":"browse"},{"id":"example-1-0","text":"purchase sample document number 0 for this supplied dataset.","actual":"purchase","predicted":"purchase"},{"id":"example-1-1","text":"purchase sample document number 1 for this supplied dataset.","actual":"purchase","predicted":"purchase"},{"id":"example-1-2","text":"purchase sample document number 2 for this supplied dataset.","actual":"purchase","predicted":"purchase"},{"id":"example-2-0","text":"return sample document number 0 for this supplied dataset.","actual":"return","predicted":"return"},{"id":"example-2-1","text":"return sample document number 1 for this supplied dataset.","actual":"return","predicted":"return"},{"id":"example-2-2","text":"return sample document number 2 for this supplied dataset.","actual":"return","predicted":"return"},{"id":"example-3-0","text":"other sample document number 0 for this supplied dataset.","actual":"other","predicted":"other"},{"id":"example-3-1","text":"other sample document number 1 for this supplied dataset.","actual":"other","predicted":"other"},{"id":"example-3-2","text":"other sample document number 2 for this supplied dataset.","actual":"other","predicted":"other"}],"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_Ciy5ycSePHYQcT-71Y3gv","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 a confusion matrix for a commerce intent classifier (browse/purchase/return/other) given up to 200 labelled and predicted text records.","exampleAgentPrompt":"Can you run a confusion matrix on my commerce intent classifier results? I have 50 labelled records where each one has the actual intent (browse, purchase, return, or other) and what my model predicted — here's the data.","exampleUseCases":[{"title":"Ecommerce chatbot intent model audit","prompt":"I built a classifier that tags customer messages as browse, purchase, return, or other, and I want to see where it's going wrong. Can you compute a confusion matrix using these 120 labelled records with my model's actual vs predicted labels?"},{"title":"Naive Bayes baseline benchmark","prompt":"I trained a quick naive Bayes model to classify shopping intent and want to evaluate it. Run a confusion matrix on these 80 test records — each has the text, the true intent label (browse, purchase, return, or other), and what the model predicted."},{"title":"Return vs purchase misclassification check","prompt":"My commerce intent model keeps confusing returns with purchases. Can you build a confusion matrix from these 150 labelled records so I can see the exact misclassification counts between return and purchase intents?"}],"resultDescription":"A confusion matrix showing true vs predicted counts across the four commerce intent classes (browse, purchase, return, other), enabling identification of misclassification patterns and per-class accuracy for up to 200 supplied labelled records.","failureModes":["More than 200 records submitted — exceeds the bounded limit","Records missing required fields (id, text, actual, or predicted)","Invalid enum values for actual or predicted (must be browse, purchase, return, or other)","Empty records array submitted","Payment of 0.01 USDC not completed — 402 response returned"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost confusion matrix computation for a commerce-specific intent classifier with exactly four classes (browse, purchase, return, other), and your dataset is 200 records or fewer. It is ideal for evaluating naive Bayes baselines or lightweight local classifiers without needing a hosted model or large-scale ML infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:11:12.786Z","isFirstParty":false,"canonicalSlug":"commerce-intent-confusion-matrix-f4368828"}