Wrong distance calculated
Closed this issue · 2 comments
bobvanluijt commented
https://play.golang.org/p/dRwrMgXPjJ1
Should returns 0 but returns 1.
bgokden commented
Hi @bobvanluijt ,
Just to be clear it should return 1.
This is Cosine Similarity function for cosine distance you need to distract it from 1 as
cosine distance = 1 - cosine similarity
bobvanluijt commented
I see, thanks @bgokden