# Lead Stage Prediction Error Records

> Lead Stage 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 per-record prediction error metrics for a naive-Bayes lead stage classifier across four sales pipeline stages (enquiry, qualified, negotiation, closed).

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-lead-stage-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/lead-stage-prediction-error-records-7f63f3f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dv4_0EGQxAmxCikT32ZoQ

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 lead-stage-prediction-error-records-7f63f3f3 -d '<json body>'
```

Example prompt: I have up to 200 labelled lead stage records — each with an ID, the original text, the actual stage (enquiry, qualified, negotiation, or closed), the predicted stage, and the four class probabilities — can you run them through the lead stage prediction error analysis and show me where the model is getting it wrong?

## When to prefer this

Choose this endpoint when you need lightweight, per-record prediction error diagnostics for a four-class lead stage text classifier without requiring a hosted model or foundation model training. It is ideal for small to medium local datasets (up to 200 records), quick evaluation loops, and debugging naive-Bayes baselines on CRM/sales pipeline data. Prefer alternatives if you need full model training, cross-validation over large corpora, or error analysis for classification problems outside the four lead stages.

## Known failure modes

- More than 200 records submitted — request will be rejected or truncated
- Probability arrays with fewer or more than 4 values — schema validation error
- Invalid stage enum value in actual or predicted fields — rejected with validation error
- Malformed or missing required fields (id, text, actual, predicted, probabilities) — schema error
- Empty records array — returns empty or trivial error output

## How this service works

Lead stage - Prediction error records: Prediction error records for Lead stage. 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 bounded set of prediction error records (up to 200 entries) detailing per-record classification errors for the lead stage classifier, including which records were mispredicted across the four stages (enquiry, qualified, negotiation, closed), derived from the supplied actual labels, predicted labels, and class probability arrays.

## 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": [
       "enquiry",
       "qualified",
       "negotiation",
       "closed"
      ],
      "type": "string"
     },
     "predicted": {
      "enum": [
       "enquiry",
       "qualified",
       "negotiation",
       "closed"
      ],
      "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": "enquiry sample document number 0 for this supplied dataset.",
     "actual": "enquiry",
     "predicted": "enquiry",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-1",
     "text": "enquiry sample document number 1 for this supplied dataset.",
     "actual": "enquiry",
     "predicted": "enquiry",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-2",
     "text": "enquiry sample document number 2 for this supplied dataset.",
     "actual": "enquiry",
     "predicted": "enquiry",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-0",
     "text": "qualified sample document number 0 for this supplied dataset.",
     "actual": "qualified",
     "predicted": "qualified",
     "probabilities": [
      0.06666666666666667,
      0.8,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-1",
     "text": "qualified sample document number 1 for this supplied dataset.",
     "actual": "qualified",
     "predicted": "qualified",
     "probabilities": [
      0.06666666666666667,
      0.8,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lead-stage-prediction-error-records-7f63f3f3/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)
