lol.project.rp {lolR} | R Documentation |
Random Projections (RP)
Description
A function for implementing gaussian random projections (rp).
Usage
lol.project.rp(X, r, scale = TRUE, ...)
Arguments
X |
|
r |
the rank of the projection. Note that |
scale |
whether to scale the random projection by the sqrt(1/d). Defaults to |
... |
trailing args. |
Value
A list containing the following:
A |
|
Xr |
|
Details
For more details see the help vignette:
vignette("rp", package = "lolR")
Author(s)
Eric Bridgeford
Examples
library(lolR)
data <- lol.sims.rtrunk(n=200, d=30) # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y
model <- lol.project.rp(X=X, r=5) # use lol to project into 5 dimensions
[Package lolR version 2.1 Index]