Description Usage Arguments Value Examples
View source: R/embeddingTrainer.R
This function measures Poincare distance between two vectors. Please refer to 'vignette' to find the equation for the Poincare distance and detailed ideas.
1 | getPoincareDistanceVec(theta_i, theta_j)
|
theta_i |
- A N x 1 vector with N : Embedding space dimension. Each of theta works as proxy of an entity in tree-shape dataset. |
theta_j |
- A N x 1 vector with N : Embedding space dimension. Each of theta works as proxy of an entity in tree-shape dataset. |
A poincare distance between theta_i and theta_j.
1 2 | getPoincareDistanceVec(c(0, 0), c(0.1, 0.5))
getPoincareDistanceVec(c(0.4, 0), c(0.1, 0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.