News for hackers. Stuff that matters.
Re:How does cosine similarity work? by kccqzy on Friday September 06, 2024 @09:25PM (#41470917)
The space of all normalized k-dimensional vector is just a unit k-sphere. You can deal with it directly, or you can use the standard inverse stereographic projection to map every point (except for one) onto a plane.

> triangles won't sum to 180

Exactly. Spherical triangles have the sum of their interior angles exceed 180 degrees.

> parallel lines will intersect

Yes because parallel "lines" are really great circles on the sphere.

Re:How does cosine similarity work? by renewiltord on Friday September 06, 2024 @10:40PM (#41471153)
So is it actually the case that normalizing down and then mapping to the k-1 plane yields a useful (for this purpose) k-1 space? Something feels wrong about the whole thing but I must just have broken intuition.
Re:How does cosine similarity work? by kccqzy on Friday September 06, 2024 @11:01PM (#41471209)
I do not understand the purpose that you are referring to in this comment or the earlier comment. But it is useful for some purposes.