jbellis commented on PR #12281:
URL: https://github.com/apache/lucene/pull/12281#issuecomment-1586195551

   ... I forgot that I cut down the dimensionality after running into the 
problem.  So you can see that it happens with a vector of ~300 dimension.
   
   Here is a branch with a failing cosine: 
https://github.com/jbellis/lucene/tree/hnsw-nan-with-test-failure
   
   I took out the "within DELTA of 1.0" assert because apparently that was 
confusing people.
   
   Here is the isFinite assert failing:
   
   ```
   java.lang.AssertionError
        at 
__randomizedtesting.SeedInfo.seed([6555F9FAC0F8AC59:2EF936BB19ED9688]:0)
        at org.apache.lucene.util.VectorUtil.cosine(VectorUtil.java:52)
        at 
org.apache.lucene.util.TestVectorUtil.testCosineLargeVector(TestVectorUtil.java:121)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to