# Knowledge Topic Classifier — Prediction Error Records

> Knowledge Topic Classifier — Prediction Error Records 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).

Computes prediction error diagnostics for a naive-Bayes knowledge-topic text classifier across up to 200 labelled records with actual vs. predicted category comparisons.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-knowledge-topic-errors?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/knowledge-topic-classifier-prediction-error-records-8a90a7b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3fP1qFLXUJAK6RQWBvc1b

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 knowledge-topic-classifier-prediction-error-records-8a90a7b0 -d '<json body>'
```

Example prompt: I have 50 labelled knowledge-base articles with actual and predicted categories (setup, usage, troubleshooting, or reference) plus the 4-class probability scores for each — can you run prediction error analysis on them and tell me which records the classifier got wrong?

## When to prefer this

Choose this endpoint when you need per-record prediction error diagnostics for a text classification model operating over the four knowledge-topic categories (setup, usage, troubleshooting, reference) using a naive-Bayes or comparable baseline approach, with a local dataset of up to 200 labelled records. It is ideal for lightweight model evaluation without requiring a hosted model or foundation-model infrastructure. Prefer it over generic ML evaluation services when your dataset is small, your task is knowledge-base topic classification, and you want a bounded, low-cost ($0.01 USDC) evaluation deliverable.

## Known failure modes

- More than 200 records supplied — batch is rejected or truncated
- Probability arrays not summing correctly or containing values outside [0,1]
- Missing required fields (id, text, actual, predicted, probabilities) cause validation errors
- Invalid enum values for actual or predicted labels outside the four permitted categories
- Empty records array returns no meaningful error output
- Probability array not exactly 4 elements causes schema rejection

## How this service works

Knowledge topic - Prediction error records: Prediction error records for Knowledge topic. 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 prediction error records deliverable.

## Output

A structured deliverable containing per-record prediction error analysis for up to 200 knowledge-topic text records, indicating which records were misclassified (actual vs. predicted label mismatches), associated probability distributions, and diagnostic information to support model evaluation across the four categories: setup, usage, troubleshooting, and reference.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "text",
     "actual",
     "predicted",
     "probabilities"
    ],
    "properties": {
     "id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "text": {
      "type": "string",
      "default": "",
      "maxLength": 1000
     },
     "actual": {
      "enum": [
       "setup",
       "usage",
       "troubleshooting",
       "reference"
      ],
      "type": "string"
     },
     "predicted": {
      "enum": [
       "setup",
       "usage",
       "troubleshooting",
       "reference"
      ],
      "type": "string"
     },
     "probabilities": {
      "type": "array",
      "items": {
       "type": "number",
       "default": 0,
       "maximum": 1,
       "minimum": 0
      },
      "default": [],
      "maxItems": 4,
      "minItems": 4
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "setup sample document number 0 for this supplied dataset.",
     "actual": "setup",
     "predicted": "setup",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-1",
     "text": "setup sample document number 1 for this supplied dataset.",
     "actual": "setup",
     "predicted": "setup",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-2",
     "text": "setup sample document number 2 for this supplied dataset.",
     "actual": "setup",
     "predicted": "setup",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-0",
     "text": "usage sample document number 0 for this supplied dataset.",
     "actual": "usage",
     "predicted": "usage",
     "probabilities": [
      0.06666666666666667,
      0.8,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-1",
     "text": "usage sample document number 1 for this supplied dataset.",
     "actual": "usage",
     "predicted": "usage",
     "probabilities": [
      0.06666666666666667,
      0.8,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-2",
     "tex
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/knowledge-topic-classifier-prediction-error-records-8a90a7b0/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)
