{"uid":"cap_fc1g1rQoFurfe7TE1BlUo","slug":"cancellation-reason-classifier-macro-micro-weighted-scores-ac06dfa9","name":"Cancellation Reason Classifier — Macro, Micro & Weighted Scores","description":"Cancellation reason - Macro micro and weighted scores: Macro micro and weighted scores 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 macro micro and weighted scores deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-ml-cancellation-reason-aggregate-scores?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_4a8JlugchF0hthKtV9JRp","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":"Evaluates a classifier's performance on customer cancellation-reason labels (price, usage, quality, other) by computing macro, micro, and weighted precision/recall/F1 scores from up to 200 labelled records.","exampleAgentPrompt":"Can you evaluate my cancellation-reason classifier against these 50 labelled records — each has an actual label (price, usage, quality, or other) and a predicted label — and give me the macro, micro, and weighted F1 scores?","exampleUseCases":[{"title":"Churn model accuracy audit","prompt":"I have 150 customer cancellation comments with their true cancellation reasons and what my model predicted — can you run macro, micro, and weighted scoring so I can see how well the model distinguishes between price, usage, quality, and other?"},{"title":"Comparing two classifier versions","prompt":"I trained two versions of our cancellation reason classifier. Here are 200 labelled records with the predicted labels from version B and the actual labels — give me the macro, micro, and weighted F1 scores so I can compare against version A's benchmark."},{"title":"Validating naive-Bayes baseline before deployment","prompt":"Before we deploy this cancellation-reason model to production, can you compute the macro, micro, and weighted precision and recall on these 80 test records with actual and predicted labels across price, usage, quality, and other categories?"}],"resultDescription":"Returns macro, micro, and weighted aggregate classification scores — including precision, recall, and F1 — computed across up to 200 labelled records with actual and predicted cancellation reason categories (price, usage, quality, other).","failureModes":["Fewer than 2 records supplied — minimum minItems:2 not met","Record text exceeds 1000 characters","ID field empty or exceeds 80 characters","Invalid actual or predicted enum value outside {price, usage, quality, other}","More than 200 records submitted — maxItems:200 exceeded","Payment of 0.01 USDC not completed via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need a fast, low-cost ($0.01 USDC) computation of macro, micro, and weighted classification scores specifically for a cancellation-reason classifier with exactly four classes (price, usage, quality, other), without needing to host or train a model. Prefer it when you already have predicted and actual labels and just need aggregate evaluation metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:47:13.929Z","isFirstParty":false,"canonicalSlug":"cancellation-reason-classifier-macro-micro-weighted-scores-ac06dfa9"}