Mathematical intuition
Why cosine similarity and Euclidean distance can disagree
Compare two neighbors by hand, then normalize the vectors to see exactly when cosine similarity and Euclidean distance produce the same ranking.
Read articleThe Glacius Blog
Worked explanations of the mathematics behind machine learning, with diagrams and calculations you can follow.
Follow via RSSMathematical intuition
Compare two neighbors by hand, then normalize the vectors to see exactly when cosine similarity and Euclidean distance produce the same ranking.
Read articleMore to explore
2 articlesMathematical intuition
Dot product vs cosine similarity, explained visually. See how vector length changes a similarity score, with a worked example and the normalization formula.
Read article