# Cosine similarity

Jump to navigation
Jump to search

The **cosine similarity** measures the similarity between two vectors by the cosine of the angle between them.
In recommender systems, the cosine similarity is often used in kNN-based methods to determine the neighborhood of a user or item,
and as a weight to compute predictions using those neighbors.