[–] messe 3y ago ↗ Even ignoring vector magnitudes, wouldn't cosine distance as a measure of similarity only make sense if you're working with a convex set? That seems like it's far from a guarantee working in a high-dimensional space. [–] imaurer 3y ago ↗ Yes, cosine distance works best in convex or normalized sets. Thinking about adding this caveat. Thanks for the question.
[–] imaurer 3y ago ↗ Yes, cosine distance works best in convex or normalized sets. Thinking about adding this caveat. Thanks for the question.
[–] sharemywin 3y ago ↗ Does this seem right?| Task | Distance Measure ||-------------------------------|-----------------------|| Document classification | Cosine Distance || Semantic search | Cosine Distance || Recommendation systems | Cosine Distance || Image recognition | Euclidean Distance (L2)|| Speech recognition | Euclidean Distance (L2)|| Handwriting analysis | Euclidean Distance (L2)|| Recommendation systems | Inner Product (Dot Product)|| Collaborative filtering | Inner Product (Dot Product)|| Matrix factorization | Inner Product (Dot Product)|| Image processing | L2-Squared Distance || Error detection and correction| Hamming Distance || DNA sequence comparison | Hamming Distance || Taxicab geometry | Manhattan Distance || Chessboard distance | Manhattan Distance | [–] imaurer 3y ago ↗ Yes
4 comments
[ 949 ms ] story [ 3063 ms ] thread| Task | Distance Measure |
|-------------------------------|-----------------------|
| Document classification | Cosine Distance |
| Semantic search | Cosine Distance |
| Recommendation systems | Cosine Distance |
| Image recognition | Euclidean Distance (L2)|
| Speech recognition | Euclidean Distance (L2)|
| Handwriting analysis | Euclidean Distance (L2)|
| Recommendation systems | Inner Product (Dot Product)|
| Collaborative filtering | Inner Product (Dot Product)|
| Matrix factorization | Inner Product (Dot Product)|
| Image processing | L2-Squared Distance |
| Error detection and correction| Hamming Distance |
| DNA sequence comparison | Hamming Distance |
| Taxicab geometry | Manhattan Distance |
| Chessboard distance | Manhattan Distance |