Description Usage Arguments Value See Also Examples
Perform a random projection (Gauss, Achlioptas or Li) of the input matrix X. Based on the RandPro package.
1 | RandProject(xx, q, method = "gaussian")
|
xx |
The data matrix (n x p). |
q |
The target dimension. |
method |
Projection method using either a Gaussian ( |
Projected matrix (n x q).
1 2 3 4 5 6 7 8 | ## Project to 3 dimensions with Gaussian projection matrix
RandProject(xx=matrix(rnorm(500),50,10), q=3)
## Achlioptas (sparse)
RandProject(xx=matrix(rnorm(500),50,10), q=2, method='achlioptas')
## Li (very sparse)
RandProject(xx=matrix(rnorm(5000),50,100), q=10, method='li')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.