New! Use Simple ML for Sheets to apply machine learning to the data in your Google Sheets
Read More
tfdf.py_tree.dataspec.categorical_value_idx_to_value
Gets the representation value of a categorical value stored as integer.
tfdf.py_tree.dataspec.categorical_value_idx_to_value(
column_spec: data_spec_pb2.Column, value_idx: int
) -> Union[int, str]
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.
Args |
column_spec
|
The column spec of the attribute.
|
value_idx
|
A value compatible with the column spec.
|
Returns |
The representation of "value_idx".
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[]]