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
- 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-01-31T17:20:03.119Z (4 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
```