searchivarius commented on issue #12342:
URL: https://github.com/apache/lucene/issues/12342#issuecomment-1668964374

   Seems to be correct (after checking what's  exactly a parallelogram law is). 
However, as I mentioned above a simpler expansion of the dot product gives us 
that L2 is a monotonic transformation of the cosine similarity (and dot product 
as well, b/c norms are constant). In that the monotonicity preserves the order. 
I just wanted so make sue my simple derivation of:
   ```
   L2=(a-b)^2 = |a|^2 - ab + |b|^2 = const1 - cosine_similarity(a,b) * const2
   ```
   looked plausible.
   


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to