PQ
Python module: cuvs.preprocessing.quantize.pq
Quantizer
Defines and stores Product Quantizer upon training
The quantization is performed by a linear mapping of an interval in the float data type to the full range of the quantized int type.
Members
pq_bits
pq_dim
pq_codebook
Returns the PQ codebook
vq_codebook
Returns the VQ codebook
encoded_dim
Returns the encoded dimension of the quantized dataset
use_vq
QuantizerParams
Parameters for product quantization
Parameters
Constructor
Members
pq_bits
pq_dim
vq_n_centers
kmeans_n_iters
pq_kmeans_type
max_train_points_per_pq_code
max_train_points_per_vq_cluster
use_vq
use_subspaces
build
@auto_sync_resources
Builds a Product Quantizer to be used later for quantizing the dataset.
Parameters
Returns
Examples
transform
@auto_sync_resources
@auto_convert_output
Applies Product Quantization transform to given dataset
Parameters
Returns
Examples
inverse_transform
@auto_sync_resources
@auto_convert_output
Applies Product Quantization inverse transform to given codes
Parameters
Returns
Examples