getPoincareDistanceVec: Calculating Poincare distance between two vectors.

Description Usage Arguments Value Examples

View source: R/embeddingTrainer.R

Description

This function measures Poincare distance between two vectors. Please refer to 'vignette' to find the equation for the Poincare distance and detailed ideas.

Usage

1
getPoincareDistanceVec(theta_i, theta_j)

Arguments

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.

Value

A poincare distance between theta_i and theta_j.

Examples

1
2
getPoincareDistanceVec(c(0, 0), c(0.1, 0.5))
getPoincareDistanceVec(c(0.4, 0), c(0.1, 0.5))

hwchang1201/poincare.embeddings documentation built on Dec. 9, 2019, 1:30 p.m.