Replies: 1 comment
-
Hi @ValRCS, the point is that the attribute
of The cosine distance itself is defined here: https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/metrics/pairwise.py#L980 There was also a discussion about it here: #21939. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Curious why same cosine similarity metric returns reversed scores.
In standard literature max score/match should be 1 and completely dissimilar vectors should be 0.
Now it is trivial to convert back and forth using 1-score on results.
Still why are the results of model.kneighbors given with a reversed score?
Beta Was this translation helpful? Give feedback.
All reactions