{"uid":"cap_DAqusIux6o0Z2v5dZD-MB","slug":"cancellation-reason-classifier-per-label-precision-and-recall-c52a3731","name":"Cancellation Reason Classifier — Per-Label Precision and Recall","description":"Cancellation reason - Per-label precision and recall: Per-label precision and recall 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 per-label precision and recall deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-ml-cancellation-reason-per-label?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":["price","usage","quality","other"],"type":"string"},"predicted":{"enum":["price","usage","quality","other"],"type":"string"}},"additionalProperties":false},"default":[{"id":"example-0-0","text":"price sample document number 0 for this supplied dataset.","actual":"price","predicted":"price"},{"id":"example-0-1","text":"price sample document number 1 for this supplied dataset.","actual":"price","predicted":"price"},{"id":"example-0-2","text":"price sample document number 2 for this supplied dataset.","actual":"price","predicted":"price"},{"id":"example-1-0","text":"usage sample document number 0 for this supplied dataset.","actual":"usage","predicted":"usage"},{"id":"example-1-1","text":"usage sample document number 1 for this supplied dataset.","actual":"usage","predicted":"usage"},{"id":"example-1-2","text":"usage sample document number 2 for this supplied dataset.","actual":"usage","predicted":"usage"},{"id":"example-2-0","text":"quality sample document number 0 for this supplied dataset.","actual":"quality","predicted":"quality"},{"id":"example-2-1","text":"quality sample document number 1 for this supplied dataset.","actual":"quality","predicted":"quality"},{"id":"example-2-2","text":"quality sample document number 2 for this supplied dataset.","actual":"quality","predicted":"quality"},{"id":"example-3-0","text":"other sample document number 0 for this supplied dataset.","actual":"other","predicted":"other"},{"id":"example-3-1","text":"other sample document number 1 for this supplied dataset.","actual":"other","predicted":"other"},{"id":"example-3-2","text":"other sample document number 2 for this supplied dataset.","actual":"other","predicted":"other"}],"maxItems":200,"minItems":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Xl4GZdI18RMZ_iKXgGWnv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes per-label precision and recall metrics for a cancellation-reason text classifier across four categories: price, usage, quality, and other.","exampleAgentPrompt":"I have 50 labelled cancellation records with actual and predicted labels across price, usage, quality, and other — can you compute the per-label precision and recall so I can see which category my classifier struggles with most?","exampleUseCases":[{"title":"Diagnosing weak recall on price cancellations","prompt":"Here are 120 labelled cancellation survey responses with actual and predicted reasons — run per-label precision and recall so I can see if my model is missing price-related cancellations specifically."},{"title":"Pre-launch classifier quality gate","prompt":"Before we ship our churn-reason model, I want per-label precision and recall on these 80 test records (actual vs predicted across price, usage, quality, and other) to make sure no single class is underperforming."},{"title":"Comparing two classifier versions on cancellation data","prompt":"I've got 150 labelled records from last quarter's cancellation surveys — can you calculate per-label precision and recall on the predicted labels so I can benchmark this against our old model's scores?"}],"resultDescription":"Returns precision and recall scores broken down per label (price, usage, quality, other) for the supplied set of up to 200 labelled text records, showing how well predictions match actuals for each individual cancellation-reason category.","failureModes":["Fewer than 2 records supplied — minimum input not met","More than 200 records submitted — exceeds maxItems limit","Invalid label value outside enum (price, usage, quality, other) — schema validation error","Missing required fields (id, text, actual, predicted) on any record — request rejected","Empty or blank text fields may reduce metric reliability without causing an error"],"whenToPreferThis":"Choose this endpoint when you need per-label (class-level) precision and recall metrics for a cancellation-reason classifier specifically covering the price/usage/quality/other taxonomy, using your own labelled evaluation set of up to 200 records, without needing a hosted model or foundation-model training pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:13:09.076Z","isFirstParty":false,"canonicalSlug":"cancellation-reason-classifier-per-label-precision-and-recall-c52a3731"}