{"uid":"cap_ACXpDK35NkV25jQT0nFdL","slug":"train-local-text-baseline-and-classify-2d5f0d4e","name":"Train Local Text Baseline and Classify","description":"Training question - Train local text baseline and classify: Train local text baseline and classify for Training question. 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-training-question-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":["concept","procedure","example","assessment"],"type":"string"}},"additionalProperties":false},"default":[{"id":"example-0-0","text":"concept sample document number 0 for this supplied dataset.","actual":"concept"},{"id":"example-0-1","text":"concept sample document number 1 for this supplied dataset.","actual":"concept"},{"id":"example-0-2","text":"concept sample document number 2 for this supplied dataset.","actual":"concept"},{"id":"example-1-0","text":"procedure sample document number 0 for this supplied dataset.","actual":"procedure"},{"id":"example-1-1","text":"procedure sample document number 1 for this supplied dataset.","actual":"procedure"},{"id":"example-1-2","text":"procedure sample document number 2 for this supplied dataset.","actual":"procedure"},{"id":"example-2-0","text":"example sample document number 0 for this supplied dataset.","actual":"example"},{"id":"example-2-1","text":"example sample document number 1 for this supplied dataset.","actual":"example"},{"id":"example-2-2","text":"example sample document number 2 for this supplied dataset.","actual":"example"},{"id":"example-3-0","text":"assessment sample document number 0 for this supplied dataset.","actual":"assessment"},{"id":"example-3-1","text":"assessment sample document number 1 for this supplied dataset.","actual":"assessment"},{"id":"example-3-2","text":"assessment sample document number 2 for this supplied dataset.","actual":"assessment"}],"maxItems":200,"minItems":2},"query_texts":{"type":"array","items":{"type":"string","default":"","maxLength":1000},"default":["concept 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_SvDbwcwX_gALkGUP966ej","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 local naive-Bayes text classifier on up to 200 labelled records and classifies query texts into one of four educational content categories.","exampleAgentPrompt":"Train a naive-Bayes text classifier on these 12 labelled records I have — each tagged as concept, procedure, example, or assessment — and then classify these new query texts: 'concept sample' and 'step by step guide'.","exampleUseCases":[{"title":"Classify educational course materials","prompt":"I have 50 labelled course documents tagged as concept, procedure, example, or assessment. Train a local classifier on them and then tell me which category these 5 new lesson snippets fall into."},{"title":"Baseline model for training question triage","prompt":"I want to build a quick baseline classifier that can sort student questions into concept, procedure, example, or assessment types. I have about 80 labelled examples — can you train the model and run it against my 10 test questions?"},{"title":"Evaluate text label quality on small dataset","prompt":"Can you train a naive-Bayes model on my 30 labelled text records — marked as concept, procedure, example, or assessment — and tell me how well it performs so I can see if my labels are consistent?"}],"resultDescription":"Returns classification predictions for the supplied query texts, along with evaluation metrics for the locally-trained naive-Bayes model (such as accuracy or per-class performance), based on the labelled records provided as training input.","failureModes":["Fewer than 2 records supplied — minimum input not met","More than 200 records supplied — exceeds maximum input limit","Missing required fields (id, text, actual) on any record","Invalid category value not in enum [concept, procedure, example, assessment]","Text length exceeds 1000 character limit per record","Empty query_texts array or more than 20 query texts supplied","Insufficient class diversity in training records for meaningful baseline"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, local text classification baseline on a small labelled dataset (up to 200 records) across the four educational content categories (concept, procedure, example, assessment) without requiring a hosted or foundation model. Ideal for rapid prototyping, label quality checks, or lightweight agentic workflows where cost matters and a naive-Bayes model is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:50:46.335Z","isFirstParty":false,"canonicalSlug":"train-local-text-baseline-and-classify-2d5f0d4e"}