# Commerce Intent Confidence Calibration Bins

> Commerce Intent Confidence Calibration Bins 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-20).

Computes confidence calibration bins for a commerce intent classifier using up to 200 labelled records with predicted probabilities and actual labels.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-commerce-intent-calibration?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/commerce-intent-confidence-calibration-bins-d3661a19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hXavfYMZfKXGX0DB0t4lV

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 commerce-intent-confidence-calibration-bins-d3661a19 -d '<json body>'
```

Example prompt: I have 150 labelled records from my commerce intent classifier — each one has the actual label (browse, purchase, return, or other), the predicted label, and the four class probabilities. Can you run confidence calibration bins on them so I can see how well my model's probability scores align with real accuracy?

## When to prefer this

Choose this endpoint when you need to evaluate how well-calibrated the probability outputs of a commerce intent classifier are, specifically for the four-class schema (browse, purchase, return, other). It is best used with up to 200 labelled examples and is ideal for lightweight, local-style calibration analysis without requiring a hosted model or foundation model. Prefer it over general ML evaluation APIs when you specifically need binned confidence calibration output for commerce intent data.

## Known failure modes

- More than 200 records submitted — exceeds the maximum batch size
- Missing required fields (id, text, actual, predicted, probabilities) in any record
- Probability arrays not summing to approximately 1.0 or containing values outside [0,1]
- Probability array length not exactly 4
- Invalid enum values for actual or predicted fields (must be browse, purchase, return, or other)
- Empty records array returns no calibration output
- Payment failure via x402 protocol blocks the request

## How this service works

Commerce intent - Confidence calibration bins: Confidence calibration bins for Commerce intent. 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 confidence calibration bins deliverable.

## Output

Returns confidence calibration bins that group predictions by probability range, showing how often the model's confidence matches actual accuracy — enabling reliability diagram construction, expected calibration error estimation, and detection of over- or under-confidence in the commerce intent classifier.

## 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": [
       "browse",
       "purchase",
       "return",
       "other"
      ],
      "type": "string"
     },
     "predicted": {
      "enum": [
       "browse",
       "purchase",
       "return",
       "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": "browse sample document number 0 for this supplied dataset.",
     "actual": "browse",
     "predicted": "browse",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-1",
     "text": "browse sample document number 1 for this supplied dataset.",
     "actual": "browse",
     "predicted": "browse",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-2",
     "text": "browse sample document number 2 for this supplied dataset.",
     "actual": "browse",
     "predicted": "browse",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-0",
     "text": "purchase sample document number 0 for this supplied dataset.",
     "actual": "purchase",
     "predicted": "purchase",
     "probabilities": [
      0.06666666666666667,
      0.8,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-1",
     "text": "purchase sample document number 1 for this supplied dataset.",
     "actual": "purchase",
     "predicted": "purchase",
     "probabilities": [
      0.06666666666666667,
      0.8,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-2",

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/commerce-intent-confidence-calibration-bins-d3661a19/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)
