Cosine similarity

A score from −1 to 1 that measures the angle between two vectors: 1 means they point the same way.

Cosine similarity measures exactly that: the angle between two arrows.
From Words as vectors, step “Similar words point the same way”

See it in action

Try cosine similarity hands-on in the lesson Words as vectors, part of the AI fundamentals course.

Open the lesson