Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Parameters.
Parameters that can be overrided in each query to tune query latency and recall.
Generated from protobuf message google.cloud.aiplatform.v1.NearestNeighborQuery.Parameters
Namespace
Google \ Cloud \ AIPlatform \ V1 \ NearestNeighborQueryMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ approximate_neighbor_candidates |
int
Optional. The number of neighbors to find via approximate search before exact reordering is performed; if set, this value must be > neighbor_count. |
↳ leaf_nodes_search_fraction |
float
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. |
getApproximateNeighborCandidates
Optional. The number of neighbors to find via approximate search before exact reordering is performed; if set, this value must be > neighbor_count.
Returns | |
---|---|
Type | Description |
int |
setApproximateNeighborCandidates
Optional. The number of neighbors to find via approximate search before exact reordering is performed; if set, this value must be > neighbor_count.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
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.
Returns | |
---|---|
Type | Description |
float |
setLeafNodesSearchFraction
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.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |