# Ticket Priority Top-k Label Coverage

> Ticket Priority Top-k Label Coverage 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-12).

Computes top-k label coverage metric for a ticket priority classifier (low/normal/high) given up to 200 labelled records with predicted probabilities.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-ticket-priority-top-k?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ticket-priority-top-k-label-coverage-c13e8408
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AaVMnqNnnGqAdcY6l-ysS

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 ticket-priority-top-k-label-coverage-c13e8408 -d '<json body>'
```

Example prompt: Calculate the top-2 label coverage for my ticket priority classifier — I have 50 labelled support tickets with their actual priorities (low, normal, or high), predicted labels, and the three class probabilities for each. Can you run the coverage evaluation?

## When to prefer this

Choose this endpoint when you need a quick, low-cost evaluation of top-k label coverage specifically for a ticket priority classifier with three classes (low, normal, high) and you already have model predictions and probabilities. It is ideal for offline model evaluation, QA checks, and small dataset analysis without needing a hosted model or foundation-model infrastructure. Prefer alternatives if you need to train a model, run inference on unlabelled data, or evaluate a classifier with different label sets.

## Known failure modes

- More than 200 records submitted — exceeds maximum batch size
- Probabilities array does not contain exactly 3 values per record — schema violation
- k value outside 1–3 range — rejected by schema
- Actual or predicted label not in enum (low, normal, high) — validation error
- Empty records array — no data to evaluate
- Probability values outside 0–1 range — schema validation failure

## How this service works

Ticket priority - Top-k label coverage: Top-k label coverage for Ticket priority. 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 top-k label coverage deliverable.

## Output

A bounded top-k label coverage deliverable: a metric indicating what fraction of supplied labelled records have the actual (true) label appearing within the top-k most probable predicted classes, based on the provided probability distributions for the low/normal/high ticket priority classes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "k": {
   "type": "integer",
   "default": 2,
   "maximum": 3,
   "minimum": 1
  },
  "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": [
       "low",
       "normal",
       "high"
      ],
      "type": "string"
     },
     "predicted": {
      "enum": [
       "low",
       "normal",
       "high"
      ],
      "type": "string"
     },
     "probabilities": {
      "type": "array",
      "items": {
       "type": "number",
       "default": 0,
       "maximum": 1,
       "minimum": 0
      },
      "default": [],
      "maxItems": 3,
      "minItems": 3
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "low sample document number 0 for this supplied dataset.",
     "actual": "low",
     "predicted": "low",
     "probabilities": [
      0.8,
      0.1,
      0.1
     ]
    },
    {
     "id": "example-0-1",
     "text": "low sample document number 1 for this supplied dataset.",
     "actual": "low",
     "predicted": "low",
     "probabilities": [
      0.8,
      0.1,
      0.1
     ]
    },
    {
     "id": "example-0-2",
     "text": "low sample document number 2 for this supplied dataset.",
     "actual": "low",
     "predicted": "low",
     "probabilities": [
      0.8,
      0.1,
      0.1
     ]
    },
    {
     "id": "example-1-0",
     "text": "normal sample document number 0 for this supplied dataset.",
     "actual": "normal",
     "predicted": "normal",
     "probabilities": [
      0.1,
      0.8,
      0.1
     ]
    },
    {
     "id": "example-1-1",
     "text": "normal sample document number 1 for this supplied dataset.",
     "actual": "normal",
     "predicted": "normal",
     "probabilities": [
      0.1,
      0.8,
      0.1
     ]
    },
    {
     "id": "example-1-2",
     "text": "normal sample document number 2 for this supplied dataset.",
     "actual": "normal",
     "predicted": "normal",
     "probabilities": [
      0.1,
      0.8,
      0.1
     ]
    },
    {
     "id": "example-2-0",
     "text": "high sample document number 0 for this supplied da
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ticket-priority-top-k-label-coverage-c13e8408/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)
