Measure label distribution of a classification dataset
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.
Answeringour last check, 2026-11-27
4 of 4checks answered this week
919 msmedian answer time
$0.003listed price per call
$0.003price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://denk.halowerk.com/v1/class-balance
| Category | Market data |
|---|---|
| Provider host | denk.halowerk.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-27 | valid payment request | 402 | $0.003 | 914 ms |
| 2026-11-26 | valid payment request | 402 | $0.003 | 988 ms |
| 2026-11-25 | valid payment request | 402 | $0.003 | 925 ms |
| 2026-11-24 | valid payment request | 402 | $0.003 | 907 ms |
Example input (from the provider)
{
"body": {
"labels": [
"spam",
"ham",
"ham",
"ham"
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$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"
}