Source header: cuvs/preprocessing/quantize/binary.h
In the cuvsBinaryQuantizerTransform function, a bit is set if the corresponding element in the dataset vector is greater than the corresponding element in the threshold vector. The mean and sampling_median thresholds are calculated separately for each dimension.
Values
Binary quantizer parameters.
Fields
Allocate Binary Quantizer params, and populate with default values
Parameters
Returns
De-allocate Binary Quantizer params
Parameters
Returns
Defines and stores threshold for quantization 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.
Fields
Allocate Binary Quantizer and populate with default values
Parameters
Returns
De-allocate Binary Quantizer
Parameters
Returns
Trains a binary quantizer to be used later for quantizing the dataset.
Parameters
Returns
Applies binary quantization transform to the given dataset
This applies binary quantization to a dataset, changing any positive values to a bitwise 1. This is useful for searching with the BitwiseHamming distance type.
Parameters
Returns
Applies binary quantization transform to the given dataset
This applies binary quantization to a dataset, changing any values that are larger than the threshold specified in the param to a bitwise 1. This is useful for searching with the BitwiseHamming distance type.
Parameters
Returns