An open API service indexing awesome lists of open source software.

https://github.com/HeardACat/randomProjection

An implementation of random projection in R based on Python's sklearn
https://github.com/HeardACat/randomProjection

Last synced: 3 months ago
JSON representation

An implementation of random projection in R based on Python's sklearn

Awesome Lists containing this project

README

        

# randomProjections

A naive implementation of Python sklearn's random projections in R. The package provides three functions: `JohnsonLindenstraussMinDim`, `GenerateGaussianRandomProj`, `RandomProjection`.

# Installation

```
library(devtools)
install_github("chappers/randomProjection")
```

# Example Usage

```
X <- rnorm(1000000)
dim(X) <- c(100, 10000)
X_new <- RandomProjection(X)
dim(X_new$RP) # 100 7894
```