{"uid":"cap_-c5kyMDk3o40008vYb9UM","slug":"review-aspect-top-k-label-coverage-9fe242b6","name":"Review Aspect Top-k Label Coverage","description":"Review aspect - Top-k label coverage: Top-k label coverage for Review aspect. 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-review-aspect-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":["performance","appearance","value","other"],"type":"string"},"predicted":{"enum":["performance","appearance","value","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":"performance sample document number 0 for this supplied dataset.","actual":"performance","predicted":"performance","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-1","text":"performance sample document number 1 for this supplied dataset.","actual":"performance","predicted":"performance","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-0-2","text":"performance sample document number 2 for this supplied dataset.","actual":"performance","predicted":"performance","probabilities":[0.8,0.06666666666666667,0.06666666666666667,0.06666666666666667]},{"id":"example-1-0","text":"appearance sample document number 0 for this supplied dataset.","actual":"appearance","predicted":"appearance","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-1","text":"appearance sample document number 1 for this supplied dataset.","actual":"appearance","predicted":"appearance","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-1-2","text":"appearance sample document number 2 for this supplied dataset.","actual":"appearance","predicted":"appearance","probabilities":[0.06666666666666667,0.8,0.06666666666666667,0.06666666666666667]},{"id":"example-2-0","text":"value sample document number 0 for this supplied dataset.","actual":"value","predicted":"value","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-1","text":"value sample document number 1 for this supplied dataset.","actual":"value","predicted":"value","probabilities":[0.06666666666666667,0.06666666666666667,0.8,0.06666666666666667]},{"id":"example-2-2","text":"value sample document number 2 for this supplied dataset.","actual":"value","predicted":"value","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_rWcS-mRRrJ8C5Pn7zzMLQ","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 metric for a review aspect classifier given up to 200 labelled records with predicted probabilities.","exampleAgentPrompt":"Can you compute the top-2 label coverage for my review aspect classifier? I have 50 labelled records with actual and predicted labels ('performance', 'appearance', 'value', 'other') and probability scores for each class — use k=2.","exampleUseCases":[{"title":"Evaluating product review aspect classifier","prompt":"I've trained a classifier to categorize product reviews into performance, appearance, value, or other. Can you calculate the top-2 label coverage across my 80 test records to see how often the correct label lands in the top 2 predictions?"},{"title":"Comparing k=1 vs k=3 coverage on review data","prompt":"Run a top-3 label coverage calculation on my 120 review aspect records — each record has actual labels and predicted probabilities for performance, appearance, value, and other — I want to see how coverage improves going from k=1 to k=3."},{"title":"QA check on aspect model before deployment","prompt":"Before I ship this review aspect model, can you run a top-k label coverage evaluation at k=2 on my 200 held-out test records with their predicted probabilities to confirm the coverage meets our threshold?"}],"resultDescription":"Returns a bounded top-k label coverage metric indicating what fraction of records have the correct label appearing within the top-k ranked predictions, computed from the supplied probability arrays and actual labels.","failureModes":["More than 200 records submitted — request rejected or truncated","Probability arrays not summing correctly or containing values outside [0,1]","k value outside allowed range (1–4) causing validation error","Mismatched label enums (values outside performance/appearance/value/other) causing schema rejection","Malformed record structure missing required fields triggering 4xx error","Empty records array returning undefined or zero metric"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, local top-k label coverage evaluation for a 4-class review aspect classification task (performance, appearance, value, other) without requiring a hosted model or foundation-model training pipeline. Best suited for small-batch evaluation (up to 200 records) at minimal cost ($0.01 USDC) when you already have predicted probabilities and ground-truth labels and just need the coverage metric computed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:39:33.950Z","isFirstParty":false,"canonicalSlug":"review-aspect-top-k-label-coverage-9fe242b6"}