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.
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)
来源:https://stackoverflow.com/questions/43299958/why-two-vectors-is-not-similarity-but-result-is-1