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

Method train

src/quantization/product.rs:30–34  ·  view source on GitHub ↗
(&mut self, vectors: &[&[f32]])

Source from the content-addressed store, hash-verified

28 }
29
30 fn train(&mut self, vectors: &[&[f32]]) -> Result<(), QuantizationError> {
31 // TODO: Implement k-means clustering for product quantization
32 // This is where you'd compute and store the centroids
33 unimplemented!("K-means clustering for product quantization is not implemented yet");
34 }
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected