# Lead Stage Classifier — Macro, Micro & Weighted Scores

> Lead Stage Classifier — Macro, Micro & Weighted Scores 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-18).

Computes macro, micro, and weighted classification evaluation scores for a lead-stage prediction dataset with up to 200 labelled text records.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-lead-stage-aggregate-scores?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lead-stage-classifier-macro-micro-weighted-scores-407d3752
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q9-E3IgcHgqaCv8ifEk5O

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-classifier-macro-micro-weighted-scores-407d3752 -d '<json body>'
```

Example prompt: Score my lead-stage classifier — I have 150 labelled records with actual and predicted values across enquiry, qualified, negotiation, and closed stages. Give me the macro, micro, and weighted evaluation scores.

## When to prefer this

Choose this endpoint when you need lightweight, fast evaluation metrics (macro, micro, weighted scores) for a lead-stage text classification task with up to 200 labelled records, using local dataset tools and naive-Bayes baselines — no hosted model or external LLM training required. Prefer this over general ML platforms when you want a cheap ($0.01 USDC), bounded, single-call evaluation with no infrastructure setup.

## Known failure modes

- More than 200 records submitted — input exceeds the bounded record limit
- Missing required fields (id, text, actual, predicted) in any record — validation error
- Invalid stage enum value outside enquiry/qualified/negotiation/closed — schema rejection
- Empty records array — no data to evaluate
- Malformed JSON body — request parsing failure

## How this service works

Lead stage - Macro micro and weighted scores: Macro micro and weighted scores 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 macro micro and weighted scores deliverable.

## Output

Returns a bounded deliverable containing macro, micro, and weighted classification scores computed over the supplied labelled records, allowing comparison of predicted vs actual lead stages across enquiry, qualified, negotiation, and closed 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": [
       "enquiry",
       "qualified",
       "negotiation",
       "closed"
      ],
      "type": "string"
     },
     "predicted": {
      "enum": [
       "enquiry",
       "qualified",
       "negotiation",
       "closed"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "enquiry sample document number 0 for this supplied dataset.",
     "actual": "enquiry",
     "predicted": "enquiry"
    },
    {
     "id": "example-0-1",
     "text": "enquiry sample document number 1 for this supplied dataset.",
     "actual": "enquiry",
     "predicted": "enquiry"
    },
    {
     "id": "example-0-2",
     "text": "enquiry sample document number 2 for this supplied dataset.",
     "actual": "enquiry",
     "predicted": "enquiry"
    },
    {
     "id": "example-1-0",
     "text": "qualified sample document number 0 for this supplied dataset.",
     "actual": "qualified",
     "predicted": "qualified"
    },
    {
     "id": "example-1-1",
     "text": "qualified sample document number 1 for this supplied dataset.",
     "actual": "qualified",
     "predicted": "qualified"
    },
    {
     "id": "example-1-2",
     "text": "qualified sample document number 2 for this supplied dataset.",
     "actual": "qualified",
     "predicted": "qualified"
    },
    {
     "id": "example-2-0",
     "text": "negotiation sample document number 0 for this supplied dataset.",
     "actual": "negotiation",
     "predicted": "negotiation"
    },
    {
     "id": "example-2-1",
     "text": "negotiation sample document number 1 for this supplied dataset.",
     "actual": "negotiation",
     "predicted": "negotiation"
    },
    {
     "id": "example-2-2",
     "text": "negotiation sample document number 2 for this supplied dataset.",
     "actual": "negotiation",
     "predicted": "negotiation"
    },
    {
     "id": "example-3-0",
     "text": "closed sample document number 0 for this supplied dataset.",
     "actual": "closed",
     "predicted": 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lead-stage-classifier-macro-micro-weighted-scores-407d3752/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)
