๐ Cosine similarity
= the โซ๏ธ Dot-product of two vectors, scaled by their magnitude (= ๐ Vector length) โ difference between two vectors in terms of their angle
Formula
- : vector 1
- : vector 2
Meaning
- Result: in range [-1, 1]
- -1: opposite direction
- +1: same direction
- 0: orthogonal
๐ Links