{"uid":"cap_kK8fRysh1U2EZ6IiZ4BKr","slug":"product-category-classifier-macro-micro-weighted-scores-35993184","name":"Product Category Classifier — Macro, Micro & Weighted Scores","description":"Product category - Macro micro and weighted scores: Macro micro and weighted scores 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 macro micro and weighted scores deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-ml-product-category-aggregate-scores?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_QRiKE33C8wcE06k5v5Oxt","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 macro, micro, and weighted aggregate evaluation scores for a product category classifier (apparel, home, electronics, other) given up to 200 labelled text records with actual and predicted labels.","exampleAgentPrompt":"I ran my product category classifier on 150 items tagged as apparel, home, electronics, or other — can you compute the macro, micro, and weighted aggregate scores comparing the actual labels to what the model predicted?","exampleUseCases":[{"title":"Classifier audit before deployment","prompt":"I have 200 product listings with their true category labels and what my model predicted — can you compute the macro, micro, and weighted scores so I can decide if the classifier is good enough to deploy?"},{"title":"Comparing two model versions","prompt":"Here are the actual vs predicted product category labels from two model runs — compute the macro, micro, and weighted aggregate scores for each batch so I can see which version performs better."},{"title":"Identifying per-category weaknesses","prompt":"My product classifier keeps confusing home and electronics items — can you evaluate these 120 labelled records and give me macro, micro, and weighted scores so I can see where it's underperforming?"}],"resultDescription":"Returns macro, micro, and weighted aggregate classification scores (such as precision, recall, and F1) computed across up to 200 supplied text records with actual and predicted product category labels (apparel, home, electronics, other).","failureModes":["More than 200 records supplied — request rejected or truncated","Missing required fields (id, text, actual, predicted) in any record — validation error","Invalid enum value for actual or predicted (must be apparel, home, electronics, or other) — schema error","Empty records array — no metrics computable","Payment not included or insufficient USDC — 402 payment required response"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.01 USDC) aggregate evaluation of a product category classifier with macro, micro, and weighted scoring on a small labelled dataset (up to 200 records) without standing up your own evaluation infrastructure or calling a large foundation model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:47:53.473Z","isFirstParty":false,"canonicalSlug":"product-category-classifier-macro-micro-weighted-scores-35993184"}