gnes.encoder.numeric.pq module

class gnes.encoder.numeric.pq.PQEncoder(num_bytes: int, cluster_per_byte: int = 255, *args, **kwargs)[source]

Bases: gnes.encoder.base.BaseBinaryEncoder

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

Train the model, need to be overrided