CLASSIFY THE VALUE IN EACH ROW¶
Classifies each row in a key-value response by evaluating user-defined label conditions against each value, assigning a configurable default label when no condition matches. Use this worker to bucket simulation or test response metrics into categorical classes (e.g. Pass/Fail, Low/Med/High) for downstream filtering or reporting.
When to use¶
Classification: process.
Tagged: bucketing, classify, condition, keyvalue, label, pass-fail, transformation.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Response To Classify | responsetoclassify | keyvalue | — | Key-value pairs to classify, where each key is a metric name and each value is a scalar result to be evaluated against the defined conditions. | |
| Default Label | defaultlabel | scalar | NoLabel | Fallback classification label (string, default: “NoLabel”) assigned to any row whose value does not satisfy any of the specified conditions. | |
| Condition | condition | labelcondition | — | One or more label-condition rules (repeatable) that define the threshold or logical expression a value must meet to be assigned a given class label. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| keyvalue_classify_output_1 | keyvalue_classify_output_1 | dataset | Dataset containing the original keys alongside their assigned classification labels, one row per key-value pair from the input. |
Disciplines¶
- ai_ml.supervised.classification
- data.dataset.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=keyvalue_classify
Auto-generated from transformation schema. Worker id: keyvalue_classify. Schema hash: 07203a66f22a. Hand-curated docs in workerexamples/ override this page when present.