gnes.encoder.numeric.quantizer module

class gnes.encoder.numeric.quantizer.QuantizerEncoder(dim_per_byte, cluster_per_byte=255, upper_bound=10000, lower_bound=-10000, partition_method='average', *args, **kwargs)[source]

Bases: gnes.encoder.base.BaseBinaryEncoder

batch_size = 2048
encode(vecs, *args, **kwargs)[source]
Return type:ndarray
train(*args, **kwargs)

Train the model, need to be overrided