File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
jvector-tests/src/test/java/io/github/jbellis/jvector/quantization Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,10 @@ public void testFusedGraph() throws Exception {
89
89
assertEquals (pqScoreFunction .similarityTo (neighbor ), edgeSimilarities .get (j ), 0.01 );
90
90
}
91
91
// third pass compares fused ADC's edge similarity after quantization to edge similarity before quantization
92
- var fusedEdgeSimilarities = fusedScoreFunction .edgeLoadingSimilarityTo (ordinal );
92
+ var edgeSimilaritiesCopy = edgeSimilarities .copy (); // results of second pass
93
+ var fusedEdgeSimilarities = fusedScoreFunction .edgeLoadingSimilarityTo (ordinal ); // results of third pass
93
94
for (int j = 0 ; j < fusedEdgeSimilarities .length (); j ++) {
94
- assertEquals (fusedEdgeSimilarities .get (j ), edgeSimilarities .get (j ), 0.01 );
95
+ assertEquals (fusedEdgeSimilarities .get (j ), edgeSimilaritiesCopy .get (j ), 0.01 );
95
96
}
96
97
}
97
98
}
You can’t perform that action at this time.
0 commit comments