{"uid":"cap_zS9i-qZu8D5fHswAIIhpQ","slug":"product-category-local-text-classifier-train-classify-f38d45ac","name":"Product Category Local Text Classifier (Train & Classify)","description":"Product category - Train local text baseline and classify: Train local text baseline and classify 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 train local text baseline and classify deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-ml-product-category-local-classifier?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","required":["id","text","actual"],"properties":{"id":{"type":"string","default":"","maxLength":80,"minLength":1},"text":{"type":"string","default":"","maxLength":1000},"actual":{"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"},{"id":"example-0-1","text":"apparel sample document number 1 for this supplied dataset.","actual":"apparel"},{"id":"example-0-2","text":"apparel sample document number 2 for this supplied dataset.","actual":"apparel"},{"id":"example-1-0","text":"home sample document number 0 for this supplied dataset.","actual":"home"},{"id":"example-1-1","text":"home sample document number 1 for this supplied dataset.","actual":"home"},{"id":"example-1-2","text":"home sample document number 2 for this supplied dataset.","actual":"home"},{"id":"example-2-0","text":"electronics sample document number 0 for this supplied dataset.","actual":"electronics"},{"id":"example-2-1","text":"electronics sample document number 1 for this supplied dataset.","actual":"electronics"},{"id":"example-2-2","text":"electronics sample document number 2 for this supplied dataset.","actual":"electronics"},{"id":"example-3-0","text":"other sample document number 0 for this supplied dataset.","actual":"other"},{"id":"example-3-1","text":"other sample document number 1 for this supplied dataset.","actual":"other"},{"id":"example-3-2","text":"other sample document number 2 for this supplied dataset.","actual":"other"}],"maxItems":200,"minItems":2},"query_texts":{"type":"array","items":{"type":"string","default":"","maxLength":1000},"default":["apparel sample"],"maxItems":20,"minItems":1}}},"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_dkbTpZggJ9AO9h8xw4loT","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":"Trains a naive-Bayes text classifier on up to 200 labelled product-category records and classifies new query texts into apparel, home, electronics, or other.","exampleAgentPrompt":"Train a local naive-Bayes text classifier on these 50 labelled product records (mix of apparel, home, and electronics examples) and then classify these 5 new product descriptions: 'wireless noise-cancelling headphones', 'cotton knit sweater', 'stainless steel cookware set', 'smart LED desk lamp', 'running shoes for men'.","exampleUseCases":[{"title":"E-commerce product feed auto-tagging","prompt":"I have 120 product listings with manually assigned categories — apparel, home, electronics, or other — and I want to train a quick classifier and then predict categories for these 10 new product descriptions I just added. Can you run that for me?"},{"title":"Baseline model accuracy check","prompt":"I want to see how well a simple naive-Bayes classifier does on my product data. Here are 80 labelled records split between apparel, home, and electronics — train on them and classify these 5 test items so I can evaluate the baseline performance."},{"title":"Category prediction for new inventory","prompt":"We just received 15 new supplier items with only raw text descriptions and no categories. Can you train a local text classifier using our 60 existing labelled products and then predict whether each new item is apparel, home, electronics, or other?"}],"resultDescription":"Returns predictions for each query text, classifying them into one of the four categories (apparel, home, electronics, other) based on a naive-Bayes model trained locally on the supplied labelled records. May include evaluation metrics and confidence signals from the baseline model run.","failureModes":["Fewer than 2 records supplied — fails minimum input validation","More than 200 records supplied — exceeds maximum and is rejected","Record text exceeds 1000 characters — individual record rejected","More than 20 query texts submitted — exceeds maximum query count","Missing required record fields (id, text, actual) — schema validation error","Label outside allowed enum (apparel, home, electronics, other) — rejected","Insufficient labelled examples per class — poor classifier performance or failure"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, on-the-fly text classification baseline for product categories (apparel, home, electronics, other) without needing a hosted model, foundation model, or persistent trained artifact. Ideal for quick feasibility checks, baseline benchmarking, or lightweight classification pipelines where cost and simplicity matter more than peak accuracy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:44.597Z","isFirstParty":false,"canonicalSlug":"product-category-local-text-classifier-train-classify-f38d45ac"}