project: Projection function.

Description Usage Arguments Value Examples

View source: R/embeddingTrainer.R

Description

This function make each embedding point theta stay in the unit ball by normalize the vector when Euclidean norm of the point is greater than 1. Please refer to 'vignette' to find the equation for the projection function and detailed ideas.

Usage

1
project(theta_i)

Arguments

-

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 N x 1 vector inside the unit ball.

Examples

1
project(c(2,2))

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