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

Method train

src/models/types.rs:520–525  ·  view source on GitHub ↗
(&mut self, vectors: &[&[f32]])

Source from the content-addressed store, hash-verified

518 }
519
520 fn train(&mut self, vectors: &[&[f32]]) -> Result<(), QuantizationError> {
521 match self {
522 Self::Scalar => ScalarQuantization.train(vectors),
523 Self::Product(product) => product.train(vectors),
524 }
525 }
526}
527
528// Implementing the std::fmt::Display trait for VectorId

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected