Re:Text Matching Using Cosine Similarity
by 0xfaded on Thursday December 27, 2018 @11:42AM
(#18770542)
Keep in mind that any similarity measure is mapping a high dimensional space onto a one dimensional space. The volume of vectors within a cosine of another vector is an N dimensional cone with volume rapidly decaying towards 0 for N > 5 (assuming positive cosine). Therefore cosine is not a particularly good metric in high dimensional spaces.
[ Parent
| on HN ]
Re:Text Matching Using Cosine Similarity
by SubiculumCode on Thursday December 27, 2018 @02:44PM
(#18771971)
For n ~ 250k to 1.5M, I've use Manhattan distance (as opposed to Euclidean) in an analysis of neuroimaging functional data...but I am interested in people's takes on choosing a distance metric..There are so many exotics out there.