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

Function centroids_have_correct_dim

nodedb-vector/src/multivec/plaid.rs:339–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337
338 #[test]
339 fn centroids_have_correct_dim() {
340 let store = build_store();
341 let pruner = PlaidPruner::train(&store, 3, 10, 42);
342 for c in &pruner.centroids {
343 assert_eq!(c.len(), 2);
344 }
345 }
346
347 #[test]
348 fn candidates_non_empty_for_matching_query() {

Callers

nothing calls this directly

Calls 1

build_storeFunction · 0.70

Tested by

no test coverage detected