MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / train_tiny

Function train_tiny

nodedb-codec/src/vector_quant/opq.rs:368–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366 }
367
368 fn train_tiny() -> OpqCodec {
369 let vecs = tiny_dataset();
370 let refs: Vec<&[f32]> = vecs.iter().map(|v| v.as_slice()).collect();
371 OpqCodec::train(&refs, 8, 2, 4, 10, 30)
372 }
373
374 #[test]
375 fn encode_produces_m_bytes() {

Callers 3

encode_produces_m_bytesFunction · 0.85
distance_is_non_negativeFunction · 0.85

Calls 4

tiny_datasetFunction · 0.85
collectMethod · 0.80
iterMethod · 0.45
as_sliceMethod · 0.45

Tested by 3

encode_produces_m_bytesFunction · 0.68
distance_is_non_negativeFunction · 0.68