The Algorithms logo
The Algorithms
Про AlgorithmsПожертвувати

Dimensionality Reduction Algorithms

I
library(stats)
pca <- princomp(train, cor = TRUE)
train_reduced  <- predict(pca,train)
test_reduced  <- predict(pca,test)