|
|
|
|
|
by janalsncm
647 days ago
|
|
Cosine similarity for unit vectors looks like the angle between hands on a high dimensional clock. 12 and 6 have -1 cosine sim. 5 and 6 are pretty close. Cosine similarity works if the model has been deliberately trained with cosine similarity as the distance metric. If they were trained with Euclidean distance the results aren’t reliable. Example: (0,1) and (0,2) have a cosine similarity of 1 but nonzero Euclidean distance. |
|