Re:Show HN: Similarity = cosine(your_GitHub_stars, Karpathy)...
by armcat on Friday January 09, 2026 @01:58PM
(#46557621)
It's grounded in basic trigonometry, i.e. it calculates the angle `theta` between two entities/vectors, `a` and `b`. If `theta` is close to 180 degrees, cos(theta) is -1, and cosine similarity dictates these are opposite concepts, i.e. unrelated.
[ Parent
| on HN ]