MCPcopy Create free account
hub / github.com/cosdata/cosdata / quantize

Method quantize

src/quantization/product.rs:20–28  ·  view source on GitHub ↗

Implementation here

(
        &self,
        vector: &[f32],
        storage_type: StorageType,
        range: (f32, f32),
    )

Source from the content-addressed store, hash-verified

18impl Quantization for ProductQuantization {
19 // Implementation here
20 fn quantize(
21 &self,
22 vector: &[f32],
23 storage_type: StorageType,
24 range: (f32, f32),
25 ) -> Result<Storage, QuantizationError> {
26 // TODO: Implement product quantization logic here
27 unimplemented!("Product quantization is not implemented yet");
28 }
29
30 fn train(&mut self, vectors: &[&[f32]]) -> Result<(), QuantizationError> {
31 // TODO: Implement k-means clustering for product quantization

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected