I have matrix 414588x47236 want to make PCA dimension reduction on it
is there any idea to make so my computer is not crashing and minimze operation time?

3 comentarios

Matt J
Matt J el 4 de Dic. de 2021
Is the matrix being stored as a tall array?
Mike Croucher
Mike Croucher el 4 de Dic. de 2021
What kind of matrix is it? Is it sparse or dense? Double precision? Single precision?
Is the matrix stored in a file? .mat or .csv or something else?
Have you managed to load it into MATLAB at all? What are the specifications of the machine you are using?
Ahmed raafat
Ahmed raafat el 5 de Dic. de 2021
it is sparse matrix , uploaded into matlab from mat file
when I try to use pca command it send error that can't deal with sparse

Iniciar sesión para comentar.

 Respuesta aceptada

Matt J
Matt J el 5 de Dic. de 2021

1 voto

You could do,
[U,S]=svds(A,k);
A_reduced=U*S;

2 comentarios

Ahmed raafat
Ahmed raafat el 6 de Dic. de 2021
and for PCA , what command?
Matt J
Matt J el 6 de Dic. de 2021
A_reduced is the result of the PCA.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 4 de Dic. de 2021

Comentada:

el 6 de Dic. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by