Data Science, Python, Programming, Science, Education.
TRUE, prob = c(0.8, 0.2)) training <- iris[ind==1,] testing <- iris[ind==2,] # create principal components pc <- prcomp(training[,-5], center = TRUE, scale. = TRUE) attributes(pc) 16 Dimensionality Reduction methods Your One-Stop-Shop for All Dimensionality Reduction Methods and Codesithinkbot.com