Package com.google.cloud.aiplatform.v1
Interface NearestNeighborQuery.ParametersOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
NearestNeighborQuery.Parameters,NearestNeighborQuery.Parameters.Builder
- Enclosing class:
- NearestNeighborQuery
public static interface NearestNeighborQuery.ParametersOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintOptional.doubleOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getApproximateNeighborCandidates
int getApproximateNeighborCandidates()Optional. The number of neighbors to find via approximate search before exact reordering is performed; if set, this value must be > neighbor_count.
int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The approximateNeighborCandidates.
-
getLeafNodesSearchFraction
double getLeafNodesSearchFraction()Optional. The fraction of the number of leaves to search, set at query time allows user to tune search performance. This value increase result in both search accuracy and latency increase. The value should be between 0.0 and 1.0.
double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The leafNodesSearchFraction.
-