How can I perform principal component analysis (PCA) on a large feature set?
I am using logistic regression to train a dataset with 20,000 features and am also using PCA for dimensionality reduction. The snippet below is directly from the documentation here: https://spark.apache.org/docs/latest/mllib-dimensionality-reduction.html#principal-component-analysis-pca However, I am (understandably) getting Java Heap Space errors (both locally and when running on a GCP cluster). How can I use PCA for such a large feature set, or, what would be a better approach for dimensionality reduction? import org.apache.spark.mllib.feature.PCA import org.apache.spark.mllib.linalg.Vectors
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.