tfdf.py_tree.dataspec.categorical_value_idx_to_value

Stay organized with collections Save and categorize content based on your preferences.

Gets the representation value of a categorical value stored as integer.

If the categorical value is an integer, returns the input value. If the categorical value is a string, resolves the dictionary and returns a string.

column_spec The column spec of the attribute.
value_idx A value compatible with the column spec.

The representation of "value_idx".