CuVSIvfPqIndexParams

View as Markdown

Java package: com.nvidia.cuvs

1public class CuVSIvfPqIndexParams

Public Members

getMetric

1public CuvsDistanceType getMetric()

Gets the distance type.

Returns

the distance type

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:143

getCodebookKind

1public CodebookGen getCodebookKind()

Gets how PQ codebooks are created

Returns

how PQ codebooks are created

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:152

getMetricArg

1public float getMetricArg()

Gets the argument used by some distance metrics

Returns

the argument used by some distance metrics

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:161

getKmeansTrainsetFraction

1public double getKmeansTrainsetFraction()

Gets the fraction of data to use during iterative kmeans building

Returns

the fraction of data to use during iterative kmeans building

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:170

getnLists

1public int getnLists()

Gets the number of inverted lists (clusters)

Returns

the number of inverted lists (clusters)

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:179

getKmeansNIters

1public int getKmeansNIters()

Gets the number of iterations searching for kmeans centers

Returns

the number of iterations searching for kmeans centers

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:188

getPqBits

1public int getPqBits()

Gets the bit length of the vector element after compression by PQ

Returns

the bit length of the vector element after compression by PQ

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:197

getPqDim

1public int getPqDim()

Gets the dimensionality of the vector after compression by PQ

Returns

the dimensionality of the vector after compression by PQ

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:206

isAddDataOnBuild

1public boolean isAddDataOnBuild()

Gets whether the dataset content is added to the index

Returns

whether the dataset content is added to the index

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:215

isForceRandomRotation

1public boolean isForceRandomRotation()

Gets the random rotation matrix on the input data and queries

Returns

the random rotation matrix on the input data and queries

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:224

isConservativeMemoryAllocation

1public boolean isConservativeMemoryAllocation()

Gets if conservative allocation behavior is set

Returns

if conservative allocation behavior is set

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:233

getMaxTrainPointsPerPqCode

1public int getMaxTrainPointsPerPqCode()

Gets whether max number of data points to use per PQ code during PQ codebook training is set

Returns

whether max number of data points to use per PQ code during PQ codebook training is set

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:244

withMetric

1public Builder withMetric(CuvsDistanceType metric)

Sets the distance type.

Parameters

NameDescription
metricdistance type

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:389

withMetricArg

1public Builder withMetricArg(float metricArg)

Sets the argument used by some distance metrics.

Parameters

NameDescription
metricArgargument used by some distance metrics

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:400

withAddDataOnBuild

1public Builder withAddDataOnBuild(boolean addDataOnBuild)

Sets whether to add the dataset content to the index.

Parameters

NameDescription
addDataOnBuildwhether to add the dataset content to the index

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:411

withNLists

1public Builder withNLists(int nLists)

Sets the number of inverted lists (clusters)

Parameters

NameDescription
nListsnumber of inverted lists (clusters)

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:422

withKmeansNIters

1public Builder withKmeansNIters(int kmeansNIters)

Sets the number of iterations searching for kmeans centers

Parameters

NameDescription
kmeansNItersnumber of iterations searching for kmeans centers

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:433

withKmeansTrainsetFraction

1public Builder withKmeansTrainsetFraction(double kmeansTrainsetFraction)

Sets the fraction of data to use during iterative kmeans building.

Parameters

NameDescription
kmeansTrainsetFractionfraction of data to use during iterative kmeans building

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:445

withPqBits

1public Builder withPqBits(int pqBits)

Sets the bit length of the vector element after compression by PQ.

Parameters

NameDescription
pqBitsbit length of the vector element after compression by PQ

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:456

withPqDim

1public Builder withPqDim(int pqDim)

Sets the dimensionality of the vector after compression by PQ.

Parameters

NameDescription
pqDimdimensionality of the vector after compression by PQ

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:467

withCodebookKind

1public Builder withCodebookKind(CodebookGen codebookKind)

Sets how PQ codebooks are created.

Parameters

NameDescription
codebookKindhow PQ codebooks are created

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:478

withForceRandomRotation

1public Builder withForceRandomRotation(boolean forceRandomRotation)

Sets the random rotation matrix on the input data and queries.

Parameters

NameDescription
forceRandomRotationrandom rotation matrix on the input data and queries

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:490

withConservativeMemoryAllocation

1public Builder withConservativeMemoryAllocation(boolean conservativeMemoryAllocation)

Sets the conservative allocation behavior

Parameters

NameDescription
conservativeMemoryAllocationconservative allocation behavior

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:501

withMaxTrainPointsPerPqCode

1public Builder withMaxTrainPointsPerPqCode(int maxTrainPointsPerPqCode)

Sets the max number of data points to use per PQ code during PQ codebook training

Parameters

NameDescription
maxTrainPointsPerPqCodemax number of data points to use per PQ code during PQ codebook training

Returns

an instance of Builder

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:514

build

1public CuVSIvfPqIndexParams build()

Builds an instance of CuVSIvfPqIndexParams.

Returns

an instance of CuVSIvfPqIndexParams

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:524

Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSIvfPqIndexParams.java:10