{"uid":"cap_d_5x6pJlHnBHx_C5SLlKJ","slug":"issue-kind-top-k-label-coverage-8e49673b","name":"Issue Kind Top-k Label Coverage","description":"Issue kind - Top-k label coverage: Top-k label coverage for Issue kind. 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-issue-kind-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":["bug","request","question","other"],"type":"string"},"predicted":{"enum":["bug","request","question","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":"bug sample document number 0 for this supplied dataset.","actual":"bug","predicted":"bug","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-1","text":"bug sample document number 1 for this supplied dataset.","actual":"bug","predicted":"bug","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-2","text":"bug sample document number 2 for this supplied dataset.","actual":"bug","predicted":"bug","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-1-0","text":"request sample document number 0 for this supplied dataset.","actual":"request","predicted":"request","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-1","text":"request sample document number 1 for this supplied dataset.","actual":"request","predicted":"request","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-2","text":"request sample document number 2 for this supplied dataset.","actual":"request","predicted":"request","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-2-0","text":"question sample document number 0 for this supplied dataset.","actual":"question","predicted":"question","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-1","text":"question sample document number 1 for this supplied dataset.","actual":"question","predicted":"question","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-2","text":"question sample document number 2 for this supplied dataset.","actual":"question","predicted":"question","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-3-0","text":"other sample document number 0 for this supplied dataset.","actual":"other","predicted":"other","probabilities":[0.06666666666666667,0.06666666666666667,0.06666666666666667,0.8]},{"id":"example-3-1","text":"other sample document number 1 for this supplied dataset.","actual":"other","predicted":"other","probabilities":[0.06666666666666667,0.06666666666666667,0.06666666666666667,0.8]},{"id":"example-3-2","text":"other sample document number 2 for this supplied dataset.","actual":"other","predicted":"other","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_qekS0UdMHuMKTtwEUB-H7","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 issue-kind classifier (bug/request/question/other) given up to 200 labelled text records with predicted probabilities.","exampleAgentPrompt":"Compute top-2 label coverage for my issue kind classifier — I have 30 labelled records with text, actual labels (bug/request/question/other), predicted labels, and 4-class probability scores. Tell me what fraction of the time the correct label appears in the top 2 predictions.","exampleUseCases":[{"title":"Baseline classifier coverage audit","prompt":"I trained a naive-Bayes model to classify support tickets as bug, request, question, or other. I have 50 labelled examples with their predicted probabilities. Can you compute top-2 label coverage so I can see how often the right label makes it into the model's top 2 guesses?"},{"title":"Comparing k=1 vs k=3 thresholds","prompt":"For my issue triage classifier, I want to see the difference between top-1 and top-3 label coverage on my 80-record labelled test set. Each record has actual and predicted labels plus four class probabilities. Run top-3 coverage for me."},{"title":"Quality gate for issue labelling pipeline","prompt":"Before we ship our automated issue labelling pipeline, I need to verify our model's top-2 label coverage meets our 90% threshold. I'll give you 120 labelled issue records with probabilities — can you calculate the top-k coverage with k=2?"}],"resultDescription":"Returns a bounded top-k label coverage deliverable: a metric (or set of metrics) indicating the proportion of supplied labelled records for which the true label appears within the top k ranked predictions by probability, computed over the 4-class issue-kind label set (bug, request, question, other).","failureModes":["More than 200 records submitted — exceeds maximum batch size","probabilities array does not contain exactly 4 values per record","k value outside allowed range of 1–4","actual or predicted labels outside allowed enum values (bug/request/question/other)","malformed record missing required fields (id, text, actual, predicted, probabilities)","payment not received or x402 authentication failure"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost top-k coverage evaluation for a 4-class issue-kind classifier without access to a hosted ML platform. Ideal for small dataset audits (up to 200 records), rapid local-style evaluation of naive-Bayes or similar baselines, and scenarios where you already have predicted probabilities and just need the coverage metric computed. Not suitable for training models, handling larger datasets, or multi-class problems beyond the fixed bug/request/question/other taxonomy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:46:32.624Z","isFirstParty":false,"canonicalSlug":"issue-kind-top-k-label-coverage-8e49673b"}