Description Usage Arguments Value Examples
If a cosine similarity has been calculated by cos_sim, then this function will convert the value to angular similarity. Angular similarity is bound between 0 and 1, with 1 being most similar, 0 being dissimilar, 0.5 being orthogonal
1 |
x |
vector of cosine similarity values |
disim vector of angular similarity values
1 2 | vals <- runif(100, -1, 1) # random values
cossim_to_angsim(vals)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.