{"uid":"cap_KOXqi-rMa8szFT48LJEXx","slug":"lead-stage-top-k-label-coverage-calculator-03fe186a","name":"Lead Stage Top-k Label Coverage Calculator","description":"Lead stage - Top-k label coverage: Top-k label coverage 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 top-k label coverage deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-ml-lead-stage-top-k?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"k":{"type":"integer","default":2,"maximum":4,"minimum":1},"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":["enquiry","qualified","negotiation","closed"],"type":"string"},"predicted":{"enum":["enquiry","qualified","negotiation","closed"],"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":"enquiry sample document number 0 for this supplied dataset.","actual":"enquiry","predicted":"enquiry","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-1","text":"enquiry sample document number 1 for this supplied dataset.","actual":"enquiry","predicted":"enquiry","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-2","text":"enquiry sample document number 2 for this supplied dataset.","actual":"enquiry","predicted":"enquiry","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-1-0","text":"qualified sample document number 0 for this supplied dataset.","actual":"qualified","predicted":"qualified","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-1","text":"qualified sample document number 1 for this supplied dataset.","actual":"qualified","predicted":"qualified","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-2","text":"qualified sample document number 2 for this supplied dataset.","actual":"qualified","predicted":"qualified","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-2-0","text":"negotiation sample document number 0 for this supplied dataset.","actual":"negotiation","predicted":"negotiation","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-1","text":"negotiation sample document number 1 for this supplied dataset.","actual":"negotiation","predicted":"negotiation","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-2","text":"negotiation sample document number 2 for this supplied dataset.","actual":"negotiation","predicted":"negotiation","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-3-0","text":"closed sample document number 0 for this supplied dataset.","actual":"closed","predicted":"closed","probabilities":[0.06666666666666667,0.06666666666666667,0.06666666666666667,0.8]},{"id":"example-3-1","text":"closed sample document number 1 for this supplied dataset.","actual":"closed","predicted":"closed","probabilities":[0.06666666666666667,0.06666666666666667,0.06666666666666667,0.8]},{"id":"example-3-2","text":"closed sample document number 2 for this supplied dataset.","actual":"closed","predicted":"closed","probabilities":[0.06666666666666667,0.06666666666666667,0.06666666666666667,0.8]}],"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_rURrZ8wJBO_6N7UOqK2K1","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 top-k label coverage metrics for a naive-Bayes classifier over the four lead pipeline stages (enquiry, qualified, negotiation, closed)","exampleAgentPrompt":"Evaluate my lead stage classifier using top-2 label coverage — I have 12 labelled records with actual and predicted labels of enquiry, qualified, negotiation, or closed, and 4-element probability arrays for each; send them all through and tell me the coverage score.","exampleUseCases":[{"title":"CRM stage model quality check","prompt":"I have 50 customer interaction texts labelled as enquiry, qualified, negotiation, or closed and a naive-Bayes model's predicted labels and probabilities. Can you calculate the top-2 label coverage to see how often the correct stage falls in the top 2 predictions?"},{"title":"Comparing k=1 vs k=3 coverage","prompt":"Run top-k label coverage for my 30 lead stage records twice — once with k=1 and once with k=3 — using the enquiry/qualified/negotiation/closed labels and the probability scores I have, so I can see how coverage improves as k grows."},{"title":"Baseline evaluation for new pipeline model","prompt":"Before I retrain my sales pipeline text classifier, I want to benchmark it — can you compute the top-3 label coverage over these 80 labelled records with actual stages, predicted stages, and 4-class probability arrays to give me a baseline evaluation score?"}],"resultDescription":"Returns a top-k label coverage metric indicating the fraction of supplied labelled records where the true label (enquiry, qualified, negotiation, or closed) appears among the top k highest-probability predictions. May include per-label breakdown of coverage rates.","failureModes":["Records array exceeds 200-item limit — request rejected","Probability array does not contain exactly 4 elements — validation error","k value outside 1–4 range — schema validation failure","Probability values outside [0,1] — invalid input error","Record ID exceeds 80 character limit — field validation error","Empty records array — computation returns no result"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost ($0.01) top-k label coverage evaluation specifically for the four-class lead pipeline stages (enquiry, qualified, negotiation, closed) using local naive-Bayes baselines without requiring a hosted or foundation model. Ideal for small datasets up to 200 records. Prefer this over generic ML evaluation APIs when your classification task maps exactly to the CRM lead stage taxonomy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:47:59.397Z","isFirstParty":false,"canonicalSlug":"lead-stage-top-k-label-coverage-calculator-03fe186a"}