mccullocht commented on issue #15408: URL: https://github.com/apache/lucene/issues/15408#issuecomment-3493529397
I tried `Math.clamp(score, -1f, 1f)` but this fails `TestLucene104HnswScalarQuantizedVectorsFormat.testSingleVectorCase`, but clamping the lower bound as you described passes. If the vectors were normalized and not centered then the `[-1,1]` bounds would be correct for sure but with the adjustments it's less obvious to me what the bounds should be. -- 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]
