{"slug":"denk-halowerk-com-v1-class-balance-5a5bf1","title":"Measure label distribution of a classification dataset","host":"denk.halowerk.com","method":"POST","resource":"https://denk.halowerk.com/v1/class-balance","category":"market","description":"Measure label distribution of a classification dataset: counts, shares, imbalance ratio, normalised entropy and inverse-frequency class weights. Counts labels (single-label or multi-label lists), computes shares, the ratio between the most and least frequent class, normalised Shannon entropy (1 = pe","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":919,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"labels":["spam","ham","ham","ham"]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"labels":{"items":{"anyOf":[{"maxLength":200,"type":"string"},{"items":{"maxLength":200,"type":"string"},"type":"array"}]},"maxItems":1000000,"minItems":1,"type":"array"},"min_count":{"default":20,"maximum":100000,"minimum":1,"type":"integer"}},"required":["labels"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":914,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":988,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":925,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":907,"error":null}],"description_full":"Measure label distribution of a classification dataset: counts, shares, imbalance ratio, normalised entropy and inverse-frequency class weights. Counts labels (single-label or multi-label lists), computes shares, the ratio between the most and least frequent class, normalised Shannon entropy (1 = perfectly balanced), classes below a minimum count and balanced class weights n_samples / (n_classes × count) as used by common training libraries.","last_updated":"2026-11-24T10:16:27.782Z","schemes":["exact"]}