{"uid":"cap_sXQILe0HM2w7gpOET2OAH","slug":"train-local-text-baseline-and-classify-task-type-d2f8b7ad","name":"Train Local Text Baseline and Classify (Task Type)","description":"Task type - Train local text baseline and classify: Train local text baseline and classify for Task type. 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-task-type-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":["research","writing","analysis","implementation"],"type":"string"}},"additionalProperties":false},"default":[{"id":"example-0-0","text":"research sample document number 0 for this supplied dataset.","actual":"research"},{"id":"example-0-1","text":"research sample document number 1 for this supplied dataset.","actual":"research"},{"id":"example-0-2","text":"research sample document number 2 for this supplied dataset.","actual":"research"},{"id":"example-1-0","text":"writing sample document number 0 for this supplied dataset.","actual":"writing"},{"id":"example-1-1","text":"writing sample document number 1 for this supplied dataset.","actual":"writing"},{"id":"example-1-2","text":"writing sample document number 2 for this supplied dataset.","actual":"writing"},{"id":"example-2-0","text":"analysis sample document number 0 for this supplied dataset.","actual":"analysis"},{"id":"example-2-1","text":"analysis sample document number 1 for this supplied dataset.","actual":"analysis"},{"id":"example-2-2","text":"analysis sample document number 2 for this supplied dataset.","actual":"analysis"},{"id":"example-3-0","text":"implementation sample document number 0 for this supplied dataset.","actual":"implementation"},{"id":"example-3-1","text":"implementation sample document number 1 for this supplied dataset.","actual":"implementation"},{"id":"example-3-2","text":"implementation sample document number 2 for this supplied dataset.","actual":"implementation"}],"maxItems":200,"minItems":2},"query_texts":{"type":"array","items":{"type":"string","default":"","maxLength":1000},"default":["research 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_31neA9AUSWofU0mzjmCdf","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 records across task-type categories (research, writing, analysis, implementation) and classifies query texts.","exampleAgentPrompt":"I have about 50 labelled task descriptions tagged as research, writing, analysis, or implementation — can you train a naive-Bayes classifier on them and then classify these three new task texts: 'summarize academic papers on NLP', 'write a blog post draft', 'implement the authentication module'?","exampleUseCases":[{"title":"Baseline classifier for task routing","prompt":"I've got 120 labelled task records split between research, writing, analysis, and implementation. Train a naive-Bayes baseline on them and tell me which category these five new task descriptions fall into: 'draft executive summary', 'explore dataset anomalies', 'build REST API endpoint', 'review literature on transformers', 'write user documentation'."},{"title":"Quick ML sanity check on task labels","prompt":"Before I invest in a bigger model, can you train a quick local text classifier on my 80 labelled task examples across the four task types and evaluate how well it classifies a handful of held-out query texts like 'prototype the database schema' and 'conduct user interviews'?"},{"title":"Auto-tagging incoming task descriptions","prompt":"I'm getting new task descriptions every day and want to auto-tag them as research, writing, analysis, or implementation. I have 150 manually labelled examples — train a naive-Bayes classifier on those and then classify today's batch of 10 new task texts for me."}],"resultDescription":"The endpoint returns classification predictions for each submitted query text, based on a naive-Bayes model trained locally on the supplied labelled records. Results include the predicted task-type label (research, writing, analysis, or implementation) for each query, along with any evaluation metrics available from the local dataset tools.","failureModes":["Fewer than 2 labelled records supplied — minimum input not met, request rejected","More than 200 labelled records submitted — exceeds maxItems limit","Query texts array is empty or missing — at least 1 query text required","Text field exceeds 1000 characters — truncation or rejection of that record","Invalid or missing 'actual' enum value — must be one of: research, writing, analysis, implementation","Insufficient class coverage in training set — classifier may perform poorly if only one category is represented"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.01 USDC), local naive-Bayes text classification baseline for task-type categorization without requiring a hosted or foundation model. Ideal for prototyping, sanity-checking labels, or routing task descriptions at small scale (up to 200 examples). Prefer this over foundation-model endpoints when cost, simplicity, and interpretability matter more than accuracy, or when you want a reproducible baseline before investing in larger models.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:39:29.730Z","isFirstParty":false,"canonicalSlug":"train-local-text-baseline-and-classify-task-type-d2f8b7ad"}