-2

I'm using Cosine Similarity formula to caculate similarity between two vectors. I tried two different vectors like this:

Vector1(-1237373741, 27, 1, 1, 331289590, 1818540802)

Vector2(-1237373741, 49, 1, 1, 331289590, 1818540802)

Two vectors has a little different, but the result is 1.

I don't know why? Anyone can explain this problem for me? thanks so much.

Community
  • 1
  • 1
atimetoremember
  • 133
  • 3
  • 12

1 Answers1

0

For the most part, those two vectors are are pointing in the same direction (The larger coordinates are going to dominate the smaller differences in the other coordinate). A cosine similarity of ~1 is expected (Remember that cos(0) = 1)

muzzlator
  • 742
  • 4
  • 10