cosine_simi | R Documentation |
Inputs will be L2 normalized, then matrix multiplied (y is transposed). If second input is missing, first input will be recycled, which enables to efficiently compute cosine similarities between the rows of a rectangular matrix.
cosine_simi(x, y)
x |
Numeric vector or matrix |
y |
Numeric vector or matrix. If missing, copied from parameter x. |
Symmetric numeric similarity matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.