public static enum ExplanationMetadata.InputMetadata.Encoding extends Enum<ExplanationMetadata.InputMetadata.Encoding> implements com.google.protobuf.ProtocolMessageEnum
Defines how a feature is encoded. Defaults to IDENTITY.Protobuf enum
google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding| Enum Constant and Description |
|---|
BAG_OF_FEATURES
The tensor represents a bag of features where each index maps to
a feature.
|
BAG_OF_FEATURES_SPARSE
The tensor represents a bag of features where each index maps to a
feature.
|
COMBINED_EMBEDDING
The tensor is encoded into a 1-dimensional array represented by an
encoded tensor.
|
CONCAT_EMBEDDING
Select this encoding when the input tensor is encoded into a
2-dimensional array represented by an encoded tensor.
|
ENCODING_UNSPECIFIED
Default value.
|
IDENTITY
The tensor represents one feature.
|
INDICATOR
The tensor is a list of binaries representing whether a feature exists
or not (1 indicates existence).
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BAG_OF_FEATURES_SPARSE_VALUE
The tensor represents a bag of features where each index maps to a
feature.
|
static int |
BAG_OF_FEATURES_VALUE
The tensor represents a bag of features where each index maps to
a feature.
|
static int |
COMBINED_EMBEDDING_VALUE
The tensor is encoded into a 1-dimensional array represented by an
encoded tensor.
|
static int |
CONCAT_EMBEDDING_VALUE
Select this encoding when the input tensor is encoded into a
2-dimensional array represented by an encoded tensor.
|
static int |
ENCODING_UNSPECIFIED_VALUE
Default value.
|
static int |
IDENTITY_VALUE
The tensor represents one feature.
|
static int |
INDICATOR_VALUE
The tensor is a list of binaries representing whether a feature exists
or not (1 indicates existence).
|
| Modifier and Type | Method and Description |
|---|---|
static ExplanationMetadata.InputMetadata.Encoding |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ExplanationMetadata.InputMetadata.Encoding> |
internalGetValueMap() |
static ExplanationMetadata.InputMetadata.Encoding |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ExplanationMetadata.InputMetadata.Encoding |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ExplanationMetadata.InputMetadata.Encoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExplanationMetadata.InputMetadata.Encoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExplanationMetadata.InputMetadata.Encoding ENCODING_UNSPECIFIED
Default value. This is the same as IDENTITY.
ENCODING_UNSPECIFIED = 0;public static final ExplanationMetadata.InputMetadata.Encoding IDENTITY
The tensor represents one feature.
IDENTITY = 1;public static final ExplanationMetadata.InputMetadata.Encoding BAG_OF_FEATURES
The tensor represents a bag of features where each index maps to a feature. [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] must be provided for this encoding. For example: ``` input = [27, 6.0, 150] index_feature_mapping = ["age", "height", "weight"] ```
BAG_OF_FEATURES = 2;public static final ExplanationMetadata.InputMetadata.Encoding BAG_OF_FEATURES_SPARSE
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][google.cloud.aiplatform.v1beta1.ExplanationMetadata.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"] ```
BAG_OF_FEATURES_SPARSE = 3;public static final ExplanationMetadata.InputMetadata.Encoding INDICATOR
The tensor is a list of binaries representing whether a feature exists or not (1 indicates existence). [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] must be provided for this encoding. For example: ``` input = [1, 0, 1, 0, 1] index_feature_mapping = ["a", "b", "c", "d", "e"] ```
INDICATOR = 4;public static final ExplanationMetadata.InputMetadata.Encoding COMBINED_EMBEDDING
The tensor is encoded into a 1-dimensional array represented by an encoded tensor. [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoded_tensor_name] must be provided for this encoding. For example: ``` input = ["This", "is", "a", "test", "."] encoded = [0.1, 0.2, 0.3, 0.4, 0.5] ```
COMBINED_EMBEDDING = 5;public static final ExplanationMetadata.InputMetadata.Encoding CONCAT_EMBEDDING
Select this encoding when the input tensor is encoded into a
2-dimensional array represented by an encoded tensor.
[InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoded_tensor_name]
must be provided for this encoding. The first dimension of the encoded
tensor's shape is the same as the input tensor's shape. For example:
```
input = ["This", "is", "a", "test", "."]
encoded = [[0.1, 0.2, 0.3, 0.4, 0.5],
[0.2, 0.1, 0.4, 0.3, 0.5],
[0.5, 0.1, 0.3, 0.5, 0.4],
[0.5, 0.3, 0.1, 0.2, 0.4],
[0.4, 0.3, 0.2, 0.5, 0.1]]
```
CONCAT_EMBEDDING = 6;public static final ExplanationMetadata.InputMetadata.Encoding UNRECOGNIZED
public static final int ENCODING_UNSPECIFIED_VALUE
Default value. This is the same as IDENTITY.
ENCODING_UNSPECIFIED = 0;public static final int IDENTITY_VALUE
The tensor represents one feature.
IDENTITY = 1;public static final int BAG_OF_FEATURES_VALUE
The tensor represents a bag of features where each index maps to a feature. [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] must be provided for this encoding. For example: ``` input = [27, 6.0, 150] index_feature_mapping = ["age", "height", "weight"] ```
BAG_OF_FEATURES = 2;public static final int BAG_OF_FEATURES_SPARSE_VALUE
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][google.cloud.aiplatform.v1beta1.ExplanationMetadata.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"] ```
BAG_OF_FEATURES_SPARSE = 3;public static final int INDICATOR_VALUE
The tensor is a list of binaries representing whether a feature exists or not (1 indicates existence). [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] must be provided for this encoding. For example: ``` input = [1, 0, 1, 0, 1] index_feature_mapping = ["a", "b", "c", "d", "e"] ```
INDICATOR = 4;public static final int COMBINED_EMBEDDING_VALUE
The tensor is encoded into a 1-dimensional array represented by an encoded tensor. [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoded_tensor_name] must be provided for this encoding. For example: ``` input = ["This", "is", "a", "test", "."] encoded = [0.1, 0.2, 0.3, 0.4, 0.5] ```
COMBINED_EMBEDDING = 5;public static final int CONCAT_EMBEDDING_VALUE
Select this encoding when the input tensor is encoded into a
2-dimensional array represented by an encoded tensor.
[InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoded_tensor_name]
must be provided for this encoding. The first dimension of the encoded
tensor's shape is the same as the input tensor's shape. For example:
```
input = ["This", "is", "a", "test", "."]
encoded = [[0.1, 0.2, 0.3, 0.4, 0.5],
[0.2, 0.1, 0.4, 0.3, 0.5],
[0.5, 0.1, 0.3, 0.5, 0.4],
[0.5, 0.3, 0.1, 0.2, 0.4],
[0.4, 0.3, 0.2, 0.5, 0.1]]
```
CONCAT_EMBEDDING = 6;public static ExplanationMetadata.InputMetadata.Encoding[] values()
for (ExplanationMetadata.InputMetadata.Encoding c : ExplanationMetadata.InputMetadata.Encoding.values()) System.out.println(c);
public static ExplanationMetadata.InputMetadata.Encoding valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ExplanationMetadata.InputMetadata.Encoding valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ExplanationMetadata.InputMetadata.Encoding forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ExplanationMetadata.InputMetadata.Encoding> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ExplanationMetadata.InputMetadata.Encoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.