Browse Source

Increase delta in ESVectorUtilTests (#131692) (#131700)

This commit increases the delta in ESVectorUtilTests.testSoarDistance, similar to what we do in other tests.

Co-authored-by: Tommaso Teofili <tommaso.teofili@elastic.co>
Chris Hegarty 2 weeks ago
parent
commit
660fe82f05

+ 1 - 1
libs/simdvec/src/test/java/org/elasticsearch/simdvec/ESVectorUtilTests.java

@@ -270,7 +270,7 @@ public class ESVectorUtilTests extends BaseVectorizationTests {
 
     public void testSoarDistance() {
         int size = random().nextInt(128, 512);
-        float deltaEps = 1e-5f * size;
+        float deltaEps = 1e-3f * size;
         var vector = new float[size];
         var centroid = new float[size];
         var preResidual = new float[size];