bagOfFeaturesSparse constant
ExplanationMetadata_InputMetadata_Encoding
const bagOfFeaturesSparse
The tensor represents a bag of features where each index maps to a
feature. Zero values in the tensor indicates feature being
non-existent.
InputMetadata.index_feature_mapping
must be provided for this encoding. For example:
input = [2, 0, 5, 0, 1]
index_feature_mapping = ["a", "b", "c", "d", "e"]
Implementation
static const bagOfFeaturesSparse = ExplanationMetadata_InputMetadata_Encoding(
'BAG_OF_FEATURES_SPARSE',
);