raise LinAlgError(“SVD did not converge”) LinAlgError: SVD did not converge in matplotlib pca determination

前端 未结 9 1213
后悔当初
后悔当初 2021-02-05 02:10

code :

import numpy
from matplotlib.mlab import PCA
file_name = \"store1_pca_matrix.txt\"
ori_data = numpy.loadtxt(file_name,dtype=\'float\', comments=\'#\', de         


        
9条回答
  •  梦谈多话
    2021-02-05 02:43

    Even if your data is correct, it may happen because it runs out of memory. In my case, moving from a 32-bit machine to a 64-bit machine with bigger memory solved the problem.

提交回复
热议问题