문제

I have a big matrix with size 12000x12000 and I need to find 100 eigenvectors with the highest 100 eigenvalues of that matrix (in order to perform a PCA dimension reduction).

I tried using the matlab's eig function, which returns more eigenvectors than I need takes forever since the matrix size is too big. I also noticed that there the 'eigs' function is much faster but it doesn't returns only 6 eigenvectors, which is less than what I need.

any ideas what can I do?

Thanks!

도움이 되었습니까?

해결책

Pass the second, optional parameter to eigs, which controls how many eigenvectors are returned.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top