gigl.src.data_preprocessor.lib.transform.TFValueEncoder#
- class gigl.src.data_preprocessor.lib.transform.tf_value_encoder.TFValueEncoder#
Bases:
object
Methods
__init__
Try to encode a given "raw value" as a tf.train.Feature of the intended type.
Returns the default value to use for a missing field.
- __weakref__#
list of weak references to the object (if defined)
- static encode_value_as_feature(value: Any, dtype: DType) Feature #
Try to encode a given “raw value” as a tf.train.Feature of the intended type. Imputes missing values according to defaults for their dtype.
- Parameters:
value –
dtype –
- Returns:
- static get_value_to_impute(dtype: DType) int | str | float #
Returns the default value to use for a missing field. :param dtype: :return: