gnes.encoder.numeric.pq module

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

Bases: gnes.encoder.base.BaseBinaryEncoder

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

Train the model, need to be overrided