# Cancellation Reason Multiclass Log Loss Calculator

> Cancellation Reason Multiclass Log Loss Calculator 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-19).

Computes multiclass log loss metric for a cancellation reason text classifier across up to 200 labelled records with four classes: price, usage, quality, other.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-cancellation-reason-log-loss?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cancellation-reason-multiclass-log-loss-calculator-47a1e078
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fd0kswKmcOaeOQc6Uad64

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 cancellation-reason-multiclass-log-loss-calculator-47a1e078 -d '<json body>'
```

Example prompt: Calculate the multiclass log loss for my cancellation reason classifier — I have 50 labelled records where each one has the actual label (price, usage, quality, or other), the predicted label, and a 4-element probability vector for each class.

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.01 USDC) log loss computation for a 4-class cancellation reason text classifier without spinning up local ML tooling. Ideal for evaluating small batches (≤200 records) of probabilistic predictions against ground-truth labels in automated agent pipelines or CI evaluation steps. Prefer this over general-purpose ML platforms when you want a single bounded metric deliverable with no setup overhead.

## Known failure modes

- More than 200 records submitted — batch size limit exceeded
- Probability vectors not summing to 1 or containing values outside [0,1]
- Probability array length not exactly 4 per record
- Invalid or unrecognized class label in actual or predicted fields
- Empty records array submitted
- Missing required fields (id, text, actual, predicted, probabilities) on any record

## How this service works

Cancellation reason - Multiclass log loss: Multiclass log loss for Cancellation reason. 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 multiclass log loss deliverable.

## Output

Returns a bounded multiclass log loss value computed over the supplied labelled records, quantifying how well the predicted probability distributions match the actual cancellation reason classes (price, usage, quality, other). Lower values indicate better calibration.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cancellation-reason-multiclass-log-loss-calculator-47a1e078/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)
