← Back to directory

Measure label distribution of a classification dataset: counts, shares, imbalanc...

https://denk.halowerk.com/v1/class-balance

Overview

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.

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider denk
Source bazaar
Indexed 2026-11-24 12:33:31

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "labels": [ "spam", "ham", "ham", "ham" ] }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "result": { "below_min_count": [ "ham", "spam" ], "classes": [ { "count": 3, "label": "ham", "share": 0.75, "weight": 0.666667 }, { "count": 1, "label": "spam", "share": 0.25, "weight": 2 } ], "imbalance_ratio": 3, "multi_label": false, "normalized_entropy": 0.811278, "rows": 4, "total": 4 }, "service": "class-balance", "status": "success" }, "type": "json" }