Description Usage Arguments Value Examples
View source: R/embeddingTrainer.R
This function gives a matrix as an output, whose (i ,j) element measures Poincare distance between i-th row vector and j-th row vector of the input matrix. Please refer to 'vignette' to find the equation for the Poincare distance Matrix and detailed ideas.
1 | getPoincareDistance(theta)
|
theta |
- A N x M matrix with N : the number of entities and M : dimension of the embedding space. |
A N x N poincare distance matrix whose (i, j) element is poincare distance between theta_i and theta_j.
1 | getPoincareDistance(matrix(stats::rnorm(100), 5, 20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.