powered by
A function for implementing gaussian random projections (rp).
lol.project.rp(X, r, scale = TRUE, ...)
[n, d] the data with n samples in d dimensions.
[n, d]
n
d
the rank of the projection. Note that r >= K, and r < d.
r >= K
r < d
whether to scale the random projection by the sqrt(1/d). Defaults to TRUE.
TRUE
trailing args.
A list containing the following:
A
[d, r] the projection matrix from d to r dimensions.
[d, r]
r
Xr
[n, r] the n data points in reduced dimensionality r.
[n, r]
For more details see the help vignette: vignette("rp", package = "lolR")
vignette("rp", package = "lolR")
# NOT RUN { 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 # }
Run the code above in your browser using DataLab