Description Usage Arguments Value Examples
Calculate the cosine similarity between two vectors of the same length. The cosine similarity is a value between 0 (distinct) and 1 (identical) and indicates how much two vectors are alike.
1 | cos_sim(x, y)
|
x |
Vector 1 of length n |
y |
Vector 2 of length n |
Cosine similarity value; a value between 0 and 1
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.