lol.embed: Embedding

Description Usage Arguments Value Author(s) Examples

View source: R/embed.R

Description

A function that embeds points in high dimensions to a lower dimensionality.

Usage

1
lol.embed(X, A, ...)

Arguments

X

[n, d] the data with n samples in d dimensions.

A

[d, r] the embedding matrix from d to r dimensions.

...

optional args.

Value

an array [n, r] the original n points embedded into r dimensions.

Author(s)

Eric Bridgeford

Examples

1
2
3
4
5
library(lolR)
data <- lol.sims.rtrunk(n=200, d=30)  # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y
model <- lol.project.lol(X=X, Y=Y, r=5)  # use lol to project into 5 dimensions
Xr <- lol.embed(X, model$A)

neurodata/lol documentation built on Oct. 17, 2018, 8:58 a.m.