The Algorithms logo
算法
关于我们捐赠

降维算法

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