public static enum FeatureView.VectorSearchConfig.DistanceMeasureType extends Enum<FeatureView.VectorSearchConfig.DistanceMeasureType> implements com.google.protobuf.ProtocolMessageEnum
google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.DistanceMeasureType| Enum Constant and Description |
|---|
COSINE_DISTANCE
Cosine Distance.
|
DISTANCE_MEASURE_TYPE_UNSPECIFIED
Should not be set.
|
DOT_PRODUCT_DISTANCE
Dot Product Distance.
|
SQUARED_L2_DISTANCE
Euclidean (L_2) Distance.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
COSINE_DISTANCE_VALUE
Cosine Distance.
|
static int |
DISTANCE_MEASURE_TYPE_UNSPECIFIED_VALUE
Should not be set.
|
static int |
DOT_PRODUCT_DISTANCE_VALUE
Dot Product Distance.
|
static int |
SQUARED_L2_DISTANCE_VALUE
Euclidean (L_2) Distance.
|
| Modifier and Type | Method and Description |
|---|---|
static FeatureView.VectorSearchConfig.DistanceMeasureType |
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<FeatureView.VectorSearchConfig.DistanceMeasureType> |
internalGetValueMap() |
static FeatureView.VectorSearchConfig.DistanceMeasureType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static FeatureView.VectorSearchConfig.DistanceMeasureType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static FeatureView.VectorSearchConfig.DistanceMeasureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FeatureView.VectorSearchConfig.DistanceMeasureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FeatureView.VectorSearchConfig.DistanceMeasureType DISTANCE_MEASURE_TYPE_UNSPECIFIED
Should not be set.
DISTANCE_MEASURE_TYPE_UNSPECIFIED = 0;public static final FeatureView.VectorSearchConfig.DistanceMeasureType SQUARED_L2_DISTANCE
Euclidean (L_2) Distance.
SQUARED_L2_DISTANCE = 1;public static final FeatureView.VectorSearchConfig.DistanceMeasureType COSINE_DISTANCE
Cosine Distance. Defined as 1 - cosine similarity. We strongly suggest using DOT_PRODUCT_DISTANCE + UNIT_L2_NORM instead of COSINE distance. Our algorithms have been more optimized for DOT_PRODUCT distance which, when combined with UNIT_L2_NORM, is mathematically equivalent to COSINE distance and results in the same ranking.
COSINE_DISTANCE = 2;public static final FeatureView.VectorSearchConfig.DistanceMeasureType DOT_PRODUCT_DISTANCE
Dot Product Distance. Defined as a negative of the dot product.
DOT_PRODUCT_DISTANCE = 3;public static final FeatureView.VectorSearchConfig.DistanceMeasureType UNRECOGNIZED
public static final int DISTANCE_MEASURE_TYPE_UNSPECIFIED_VALUE
Should not be set.
DISTANCE_MEASURE_TYPE_UNSPECIFIED = 0;public static final int SQUARED_L2_DISTANCE_VALUE
Euclidean (L_2) Distance.
SQUARED_L2_DISTANCE = 1;public static final int COSINE_DISTANCE_VALUE
Cosine Distance. Defined as 1 - cosine similarity. We strongly suggest using DOT_PRODUCT_DISTANCE + UNIT_L2_NORM instead of COSINE distance. Our algorithms have been more optimized for DOT_PRODUCT distance which, when combined with UNIT_L2_NORM, is mathematically equivalent to COSINE distance and results in the same ranking.
COSINE_DISTANCE = 2;public static final int DOT_PRODUCT_DISTANCE_VALUE
Dot Product Distance. Defined as a negative of the dot product.
DOT_PRODUCT_DISTANCE = 3;public static FeatureView.VectorSearchConfig.DistanceMeasureType[] values()
for (FeatureView.VectorSearchConfig.DistanceMeasureType c : FeatureView.VectorSearchConfig.DistanceMeasureType.values()) System.out.println(c);
public static FeatureView.VectorSearchConfig.DistanceMeasureType 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 FeatureView.VectorSearchConfig.DistanceMeasureType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static FeatureView.VectorSearchConfig.DistanceMeasureType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<FeatureView.VectorSearchConfig.DistanceMeasureType> 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 FeatureView.VectorSearchConfig.DistanceMeasureType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.