Glossary: Linear Algebra for ML
Cosine similarity
Also written: cosine
The dot product divided by both vectors' lengths, comparing direction only. It's 1 for the same direction, 0 for unrelated and −1 for opposite, so it compares the mix rather than the volume.