Description Usage Arguments Value Examples
Calculate the pairwise similarity between rows of input matrix
1 | cosine_sim_func(input_mat)
|
input_mat |
Input matrix. |
Square matrix of the similarity. Diagonal values should be 1.
1 2 | m <- matrix(1:8, ncol = 2) # a 4x2 matrix
cosine_sim_func(m) # a 4x4 similarity matrix
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.