Classify flow item result
ClassifyDatapointResult
dataclass
#
ClassifyDatapointResult(
majority_value: str | None,
distribution: dict[str, int],
response_count: int,
)
Classification outcome of a single datapoint in a classify flow item.
Attributes:
| Name | Type | Description |
|---|---|---|
majority_value |
str | None
|
The category value chosen most often, or None on a tie. |
distribution |
dict[str, int]
|
Mapping of category value to the number of responses that chose it. Categories nobody chose are omitted. |
response_count |
int
|
Number of responses collected for this datapoint. |
ClassifyFlowItemResult
dataclass
#
ClassifyFlowItemResult(
datapoints: dict[str, ClassifyDatapointResult],
total_responses: int,
)
Result of a classify flow item.
Attributes:
| Name | Type | Description |
|---|---|---|
datapoints |
dict[str, ClassifyDatapointResult]
|
Mapping of asset identifier to its classification outcome. |
total_responses |
int
|
Total number of responses collected for this flow item. |