Lightning AI Studios: Never set up a local environment again →

← Back to glossary

Cosine Similarity

Cosine similarity is a measure used to determine the similarity between two vectors by calculating the cosine of the angle between them. It ranges from -1 to 1, with values closer to 1 indicating higher similarity and values closer to -1 indicating dissimilarity.