# Train Local Text Baseline and Classify (Task Type)

> Train Local Text Baseline and Classify (Task Type) is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Trains a naive-Bayes text classifier on up to 200 labelled records across task-type categories (research, writing, analysis, implementation) and classifies query texts.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-task-type-local-classifier?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/train-local-text-baseline-and-classify-task-type-d2f8b7ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sXQILe0HM2w7gpOET2OAH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability train-local-text-baseline-and-classify-task-type-d2f8b7ad -d '<json body>'
```

Example prompt: 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'?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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":
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/train-local-text-baseline-and-classify-task-type-d2f8b7ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
