Other Distance Metrics
shancarter opened this issue · 4 comments
shancarter commented
Is it possible to use something like angle (cosine similarity) as the measure of closeness?
eamid commented
Thanks for the suggestion.
Since ANNOY supports Euclidean distance, Manhattan distance, cosine distance, Hamming distance, and Dot (Inner) Product distance, it is possible to add other distance measures. I will add this soon in the next update.
shancarter commented
Awesome, thanks for the quick response!
eamid commented
I added the Manhattan, angular (i.e. cosine), and Hamming distances.
shancarter commented
Wow, thanks!