gnes.encoder.numeric.quantizer module

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

Bases: gnes.encoder.base.BaseBinaryEncoder

batch_size = 2048
encode(vecs: numpy.ndarray, *args, **kwargs) → numpy.ndarray[source]
train(*args, **kwargs)

Train the model, need to be overrided