News for hackers. Stuff that matters.
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.
Re:Show HN: Similarity = cosine(your_GitHub_stars, Karpathy)... by jmalicki on Saturday January 10, 2026 @02:38PM (#46569185)
Unrelated would be a cosine of 0. Being opposites is a very strong relation.