Denkwerk
class balance
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.
POST https://denk.halowerk.com/v1/class-balanceInputs
| Field | Type | Required | Description |
|---|---|---|---|
| labels | array | Yes | |
| min_count | integer | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"labels"
],
"properties": {
"labels": {
"type": "array",
"minItems": 1,
"maxItems": 1000000,
"items": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "array",
"items": {
"type": "string",
"maxLength": 200
}
}
]
}
},
"min_count": {
"type": "integer",
"minimum": 1,
"maximum": 100000,
"default": 20
}
}
}Published input example
{
"labels": [
"spam",
"ham",
"ham",
"ham"
]
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Denkwerk0.003 USDC
agent card generate
POSThttps://denk.halowerk.com/v1/agent-card-generateBuilds an Agent2Agent protocol Agent Card with protocolVersion, name, description, url, version, capabilities, default input/output modes and skills. Skills come from the supplied list or are derived from OpenAPI operations (operationId, su
- Denkwerk0.003 USDC
agent permission diff
POSThttps://denk.halowerk.com/v1/agent-permission-diffTakes the tool names (with optional descriptions) and permission scopes of an agent before and after a change and reports added and removed tools and scopes, classifies new capabilities by risk (payments, sending messages, deleting or writi
- Denkwerk0.003 USDC
annotation guide draft
POSThttps://denk.halowerk.com/v1/annotation-guide-draftTakes example texts per label and derives, without a language model, the most distinguishing terms per label (TF-IDF contrast against the other labels), representative examples, cross-label example pairs with high similarity that need a wri