Binary
Source header: cuvs/preprocessing/quantize/binary.h
C API for Binary Quantizer
cuvsBinaryQuantizerThreshold
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
cuvsBinaryQuantizerParams
Binary quantizer parameters.
Fields
cuvsBinaryQuantizerParamsCreate
Allocate Binary Quantizer params, and populate with default values
Parameters
Returns
cuvsBinaryQuantizerParamsDestroy
De-allocate Binary Quantizer params
Parameters
Returns
cuvsBinaryQuantizer
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
cuvsBinaryQuantizerCreate
Allocate Binary Quantizer and populate with default values
Parameters
Returns
cuvsBinaryQuantizerDestroy
De-allocate Binary Quantizer
Parameters
Returns
cuvsBinaryQuantizerTrain
Trains a binary quantizer to be used later for quantizing the dataset.
Parameters
Returns
cuvsBinaryQuantizerTransform
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
cuvsBinaryQuantizerTransformWithParams
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