# Review Aspect Top-k Label Coverage

> Review Aspect 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-15).

Computes top-k label coverage metric for a review aspect classifier given up to 200 labelled records with predicted probabilities.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-review-aspect-top-k?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/review-aspect-top-k-label-coverage-9fe242b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-c5kyMDk3o40008vYb9UM

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 review-aspect-top-k-label-coverage-9fe242b6 -d '<json body>'
```

Example prompt: Can you compute the top-2 label coverage for my review aspect classifier? I have 50 labelled records with actual and predicted labels ('performance', 'appearance', 'value', 'other') and probability scores for each class — use k=2.

## When to prefer this

Choose this endpoint when you need a lightweight, local top-k label coverage evaluation for a 4-class review aspect classification task (performance, appearance, value, other) without requiring a hosted model or foundation-model training pipeline. Best suited for small-batch evaluation (up to 200 records) at minimal cost ($0.01 USDC) when you already have predicted probabilities and ground-truth labels and just need the coverage metric computed.

## Known failure modes

- More than 200 records submitted — request rejected or truncated
- Probability arrays not summing correctly or containing values outside [0,1]
- k value outside allowed range (1–4) causing validation error
- Mismatched label enums (values outside performance/appearance/value/other) causing schema rejection
- Malformed record structure missing required fields triggering 4xx error
- Empty records array returning undefined or zero metric

## How this service works

Review aspect - Top-k label coverage: Top-k label coverage for Review aspect. 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

Returns a bounded top-k label coverage metric indicating what fraction of records have the correct label appearing within the top-k ranked predictions, computed from the supplied probability arrays and actual labels.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "k": {
   "type": "integer",
   "default": 2,
   "maximum": 4,
   "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": [
       "performance",
       "appearance",
       "value",
       "other"
      ],
      "type": "string"
     },
     "predicted": {
      "enum": [
       "performance",
       "appearance",
       "value",
       "other"
      ],
      "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": "performance sample document number 0 for this supplied dataset.",
     "actual": "performance",
     "predicted": "performance",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-1",
     "text": "performance sample document number 1 for this supplied dataset.",
     "actual": "performance",
     "predicted": "performance",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-2",
     "text": "performance sample document number 2 for this supplied dataset.",
     "actual": "performance",
     "predicted": "performance",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-0",
     "text": "appearance sample document number 0 for this supplied dataset.",
     "actual": "appearance",
     "predicted": "appearance",
     "probabilities": [
      0.06666666666666667,
      0.8,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-1",
     "text": "appearance sample document number 1 for this supplied dataset.",
     "actual": "appearance",
     "predicted": "appearance",
     "
… (truncated)
```

## More

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