VamanaIndexParams
Java package: com.nvidia.cuvs
Supplemental parameters to build a Vamana index.
The defaults match the native cuvs::neighbors::vamana::index_params
defaults.
Public Members
supportedGraphDegrees
Returns the graph degrees the native Vamana builder supports.
Returns
a copy of the supported graph degrees, in ascending order
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:30
L2Expanded
Squared L2.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:45
L2SqrtExpanded
Euclidean, the square root of #L2Expanded.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:50
getGraphDegree
Gets the maximum degree of the output graph, the R parameter in the Vamana literature.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:97
getVisitedSize
Gets the maximum number of visited nodes per search, the L parameter in the Vamana literature.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:105
getVamanaIters
Gets the number of Vamana vector insertion iterations.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:112
getAlpha
Gets the alpha pruning parameter.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:119
getMaxFraction
Gets the maximum fraction of the dataset inserted per batch.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:126
getBatchBase
Gets the growth rate base for batch sizes.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:133
getQueueSize
Gets the candidate queue size.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:140
getReverseBatchSize
Gets the maximum batch size of reverse edge processing.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:147
getMetric
Gets the distance metric.
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:154
withGraphDegree
Sets the maximum degree of the output graph.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:205
withVisitedSize
Sets the maximum number of visited nodes per search.
The native builder requires this to be greater than the graph degree.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:218
withVamanaIters
Sets the number of Vamana vector insertion iterations.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:229
withAlpha
Sets the alpha pruning parameter.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:240
withMaxFraction
Sets the maximum fraction of the dataset inserted per batch. A larger batch decreases graph quality but improves build speed.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:252
withBatchBase
Sets the growth rate base for batch sizes.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:263
withQueueSize
Sets the candidate queue size. The native builder expects a value of the
form (2^x) - 1.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:275
withReverseBatchSize
Sets the maximum batch size of reverse edge processing, which bounds the memory footprint of that stage.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:287
withMetric
Sets the distance metric.
Parameters
Returns
an instance of this Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:298
build
Builds an instance of VamanaIndexParams.
Returns
an instance of VamanaIndexParams
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:308
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/VamanaIndexParams.java:18