Scalar
Python module: cuvs.preprocessing.quantize.scalar
Quantizer
Defines and stores scalar for quantisation 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
min
max
QuantizerParams
Parameters for scalar quantization
Parameters
Constructor
Members
quantile
inverse_transform
@auto_sync_resources
@auto_convert_output
Perform inverse quantization step on previously quantized dataset
Note that depending on the chosen data types train dataset the conversion is not lossless.
Parameters
Returns
train
@auto_sync_resources
Initializes a scalar quantizer to be used later for quantizing the dataset.
Parameters
Returns
Examples
transform
@auto_sync_resources
@auto_convert_output
Applies quantization transform to given dataset
Parameters
Returns
Examples