dataLoader: Converting a tree-shape dataset to the components for...

Description Usage Arguments Value Examples

View source: R/dataLoader.R

Description

Please refer to 'vignette' to find detailed concepts of what this function does with detailed example.

Usage

1
dataLoader(dataset_tree)

Arguments

dataset_tree

- A tree-shape dataset with yaml format.

Value

entity - A vector of all the entities in the tree-shape dataset.

POS - A 2-row positive relation matrix that contains positive relation entities columnwisely.

NEG - A 2-row negative relation matrix that contains negative relation entities columnwisely.

Examples

1
2
3
statistics_yaml <- yaml::yaml.load(statistics)
statistics_tree <- data.tree::as.Node(statistics_yaml)
dataLoader(statistics_tree)

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