bagOfFeatures constant

The tensor represents a bag of features where each index maps to a feature. InputMetadata.index_feature_mapping must be provided for this encoding. For example:

input = [27, 6.0, 150]
index_feature_mapping = ["age", "height", "weight"]

Implementation

static const bagOfFeatures = ExplanationMetadata_InputMetadata_Encoding(
  'BAG_OF_FEATURES',
);