View source on GitHub |
Gets the representation value of a categorical label value.
tfdf.py_tree.dataspec.label_value_idx_to_value(
column_spec: data_spec_pb2.Column, value_idx: int
) -> Union[int, str]
This function can be used in condition with ProbabilityValue.
Args | |
---|---|
column_spec
|
The column spec of the attribute. |
value_idx
|
A label value compatible with the column spec. |
Returns | |
---|---|
The representation of "value_idx". |