I am trying to reduce the dimension of a very large matrix using PCA in Sklearn, but it causes a memory error (requires RAM (more than 128 GB)). I have already set copy = False, and I am using a less costly randomized PCA.
Is there a workaround? If not, what other brightness reduction methods can I use that require less memory. Thanks.
Update: The matrix I'm trying to use for the PCA is a collection of feature vectors. This is due to the transfer of a set of training images through pre-processed CNN. Matrix [300000, 51200]. PCA components tried: 100 to 500.
I want to reduce its dimension, so I can use these functions to teach the ML algorithm, for example XGBoost. Thanks.
source
share