# Knowledge Topic Confusion Matrix

> Knowledge Topic Confusion Matrix 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 a confusion matrix for knowledge-topic text classification (setup/usage/troubleshooting/reference) from up to 200 labelled records with actual and predicted labels.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-knowledge-topic-confusion?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-confusion-matrix-ba280009
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__jZDq_C2lUxewMACiMIay

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-confusion-matrix-ba280009 -d '<json body>'
```

Example prompt: I have 150 labelled knowledge-base articles where each one has an actual category (setup, usage, troubleshooting, or reference) and my classifier's predicted category — can you compute a confusion matrix so I can see where it's going wrong?

## When to prefer this

Choose this endpoint when you need a lightweight, low-cost ($0.01) confusion matrix evaluation for a 4-class knowledge-topic text classifier (setup/usage/troubleshooting/reference) without needing to host a model or use a foundation model. Ideal for offline batch evaluation of up to 200 pre-labelled records where you already have both actual and predicted labels.

## Known failure modes

- Exceeds 200 record limit — request rejected
- Missing required fields (id, text, actual, predicted) — validation error
- Invalid enum value for actual or predicted label — schema error
- Empty records array — no matrix computable
- Payment failure — endpoint returns 402 without processing

## How this service works

Knowledge topic - Confusion matrix: Confusion matrix 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 confusion matrix deliverable.

## Output

A bounded confusion matrix deliverable showing how predicted knowledge-topic labels (setup, usage, troubleshooting, reference) align with actual labels across the supplied records, enabling identification of misclassification patterns between topic categories.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "text",
     "actual",
     "predicted"
    ],
    "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"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "setup sample document number 0 for this supplied dataset.",
     "actual": "setup",
     "predicted": "setup"
    },
    {
     "id": "example-0-1",
     "text": "setup sample document number 1 for this supplied dataset.",
     "actual": "setup",
     "predicted": "setup"
    },
    {
     "id": "example-0-2",
     "text": "setup sample document number 2 for this supplied dataset.",
     "actual": "setup",
     "predicted": "setup"
    },
    {
     "id": "example-1-0",
     "text": "usage sample document number 0 for this supplied dataset.",
     "actual": "usage",
     "predicted": "usage"
    },
    {
     "id": "example-1-1",
     "text": "usage sample document number 1 for this supplied dataset.",
     "actual": "usage",
     "predicted": "usage"
    },
    {
     "id": "example-1-2",
     "text": "usage sample document number 2 for this supplied dataset.",
     "actual": "usage",
     "predicted": "usage"
    },
    {
     "id": "example-2-0",
     "text": "troubleshooting sample document number 0 for this supplied dataset.",
     "actual": "troubleshooting",
     "predicted": "troubleshooting"
    },
    {
     "id": "example-2-1",
     "text": "troubleshooting sample document number 1 for this supplied dataset.",
     "actual": "troubleshooting",
     "predicted": "troubleshooting"
    },
    {
     "id": "example-2-2",
     "text": "troubleshooting sample document number 2 for this supplied dataset.",
     "actual": "troubleshooting",
     "predicted": "troubleshooting"
    },
    {
     "id": "example-3-0",
     "text": "reference sample document number 0 for this supplied dataset.",
     "actual": "reference",
     "predicted": "reference
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/knowledge-topic-confusion-matrix-ba280009/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)
