Implementation here
(
&self,
vector: &[f32],
storage_type: StorageType,
range: (f32, f32),
)
| 18 | impl 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 |
nothing calls this directly
no outgoing calls
no test coverage detected