https://github.com/heardacat/randomprojection
An implementation of random projection in R based on Python's sklearn
https://github.com/heardacat/randomprojection
Last synced: 2 months ago
JSON representation
An implementation of random projection in R based on Python's sklearn
- Host: GitHub
- URL: https://github.com/heardacat/randomprojection
- Owner: HeardACat
- Created: 2015-08-15T10:04:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-15T10:07:53.000Z (almost 10 years ago)
- Last Synced: 2025-03-26T16:40:22.465Z (3 months ago)
- Language: R
- Size: 129 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```