{"uid":"cap_75wmo5lRi4Y8MJOJbxtJH","slug":"product-category-confusion-matrix-fc1ab25a","name":"Product Category Confusion Matrix","description":"Product category - Confusion matrix: Confusion matrix for Product category. 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-product-category-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":["apparel","home","electronics","other"],"type":"string"},"predicted":{"enum":["apparel","home","electronics","other"],"type":"string"}},"additionalProperties":false},"default":[{"id":"example-0-0","text":"apparel sample document number 0 for this supplied dataset.","actual":"apparel","predicted":"apparel"},{"id":"example-0-1","text":"apparel sample document number 1 for this supplied dataset.","actual":"apparel","predicted":"apparel"},{"id":"example-0-2","text":"apparel sample document number 2 for this supplied dataset.","actual":"apparel","predicted":"apparel"},{"id":"example-1-0","text":"home sample document number 0 for this supplied dataset.","actual":"home","predicted":"home"},{"id":"example-1-1","text":"home sample document number 1 for this supplied dataset.","actual":"home","predicted":"home"},{"id":"example-1-2","text":"home sample document number 2 for this supplied dataset.","actual":"home","predicted":"home"},{"id":"example-2-0","text":"electronics sample document number 0 for this supplied dataset.","actual":"electronics","predicted":"electronics"},{"id":"example-2-1","text":"electronics sample document number 1 for this supplied dataset.","actual":"electronics","predicted":"electronics"},{"id":"example-2-2","text":"electronics sample document number 2 for this supplied dataset.","actual":"electronics","predicted":"electronics"},{"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_4T5hSKHLnvKqwmVh9nAuY","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 product category classifier (apparel, home, electronics, other) from up to 200 labeled text records with actual and predicted labels.","exampleAgentPrompt":"I have 150 labeled product records where each one has an actual category (apparel, home, electronics, or other) and a predicted category from my classifier — can you compute a confusion matrix so I can see where it's getting confused?","exampleUseCases":[{"title":"Audit ecommerce classifier errors","prompt":"I ran my product text classifier over 120 items from our catalog and recorded the actual versus predicted categories for apparel, home, electronics, and other — can you build me a confusion matrix so I know which categories it's mixing up?"},{"title":"Compare two product taggers","prompt":"I've got 80 product descriptions each with a ground-truth category and a label from our new tagger — please compute the confusion matrix across apparel, home, electronics, and other so I can see the error patterns before we ship it."},{"title":"Evaluate naive-Bayes product model","prompt":"We trained a naive-Bayes model on product titles and here are the actual vs predicted labels for 60 test items across the four categories — compute the confusion matrix so we can measure how often it misclassifies home goods as other."}],"resultDescription":"A bounded confusion matrix deliverable showing counts of true positives, false positives, false negatives, and true negatives across the four product categories (apparel, home, electronics, other), summarizing where the classifier's predictions agree or diverge from actual labels.","failureModes":["More than 200 records supplied — request rejected or truncated","Invalid or missing required fields (id, text, actual, predicted) on any record","Actual or predicted values outside the allowed enum (apparel, home, electronics, other)","Empty records array returns a trivial or error response","Payment of 0.01 USDC not completed causes request rejection"],"whenToPreferThis":"Use this endpoint when you need a fast, inexpensive confusion matrix computation for a 4-class product category classifier (apparel, home, electronics, other) on a small labeled dataset of up to 200 records, without needing to train or host a model. Prefer this over general ML platforms when you want a single bounded deliverable at minimal cost via micropayment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:57.650Z","isFirstParty":false,"canonicalSlug":"product-category-confusion-matrix-fc1ab25a"}