Package com.google.cloud.aiplatform.v1
Enum ExplanationMetadata.InputMetadata.Encoding
java.lang.Object
java.lang.Enum<ExplanationMetadata.InputMetadata.Encoding>
com.google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Encoding
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ExplanationMetadata.InputMetadata.Encoding>
- Enclosing class:
- ExplanationMetadata.InputMetadata
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.v1.ExplanationMetadata.InputMetadata.Encoding-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe tensor represents a bag of features where each index maps to a feature.The tensor represents a bag of features where each index maps to a feature.The tensor is encoded into a 1-dimensional array represented by an encoded tensor.Select this encoding when the input tensor is encoded into a 2-dimensional array represented by an encoded tensor.Default value.The tensor represents one feature.The tensor is a list of binaries representing whether a feature exists or not (1 indicates existence). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe tensor represents a bag of features where each index maps to a feature.static final intThe tensor represents a bag of features where each index maps to a feature.static final intThe tensor is encoded into a 1-dimensional array represented by an encoded tensor.static final intSelect this encoding when the input tensor is encoded into a 2-dimensional array represented by an encoded tensor.static final intDefault value.static final intThe tensor represents one feature.static final intThe tensor is a list of binaries representing whether a feature exists or not (1 indicates existence). -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ExplanationMetadata.InputMetadata.Encoding>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ENCODING_UNSPECIFIED
Default value. This is the same as IDENTITY.
ENCODING_UNSPECIFIED = 0; -
IDENTITY
The tensor represents one feature.
IDENTITY = 1; -
BAG_OF_FEATURES
The tensor represents a bag of features where each index maps to a feature. [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.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; -
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.v1.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; -
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.v1.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; -
COMBINED_EMBEDDING
The tensor is encoded into a 1-dimensional array represented by an encoded tensor. [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.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; -
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.v1.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; -
UNRECOGNIZED
-
-
Field Details
-
ENCODING_UNSPECIFIED_VALUE
public static final int ENCODING_UNSPECIFIED_VALUEDefault value. This is the same as IDENTITY.
ENCODING_UNSPECIFIED = 0;- See Also:
-
IDENTITY_VALUE
public static final int IDENTITY_VALUEThe tensor represents one feature.
IDENTITY = 1;- See Also:
-
BAG_OF_FEATURES_VALUE
public static final int BAG_OF_FEATURES_VALUEThe tensor represents a bag of features where each index maps to a feature. [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.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;- See Also:
-
BAG_OF_FEATURES_SPARSE_VALUE
public static final int BAG_OF_FEATURES_SPARSE_VALUEThe 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.v1.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;- See Also:
-
INDICATOR_VALUE
public static final int INDICATOR_VALUEThe tensor is a list of binaries representing whether a feature exists or not (1 indicates existence). [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.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;- See Also:
-
COMBINED_EMBEDDING_VALUE
public static final int COMBINED_EMBEDDING_VALUEThe tensor is encoded into a 1-dimensional array represented by an encoded tensor. [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.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;- See Also:
-
CONCAT_EMBEDDING_VALUE
public static final int CONCAT_EMBEDDING_VALUESelect 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.v1.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;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ExplanationMetadata.InputMetadata.Encoding> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static ExplanationMetadata.InputMetadata.Encoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-