getPoincareDistance: Calculating Poincare distance matrix

Description Usage Arguments Value Examples

View source: R/embeddingTrainer.R

Description

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.

Usage

1

Arguments

theta

- A N x M matrix with N : the number of entities and M : dimension of the embedding space.

Value

A N x N poincare distance matrix whose (i, j) element is poincare distance between theta_i and theta_j.

Examples

1

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