Reputation: 1598
Cosine similarity/distance should be bounded between -1 and +1. Yet, sklearn.metrics.pairwise
gives values > +1. Can anyone explain this behaviour please?
Upvotes: 0
Views: 506
Reputation: 8277
pairwise
default distance is Euclidean which is not bounded from above, hence you should not be surpised to see some values greater than 1.
Upvotes: 1