Effacer les filtres
Effacer les filtres

how to reduce the dimension of a feature space?

1 vue (au cours des 30 derniers jours)
sorena mirzaie
sorena mirzaie le 5 Juin 2013
I have 260 sample,each sample has 320 feature (x is a matrix with 260 rows & 320 column).in order to improve my classification,i need to reduce these 320 column(i mean number of features).but i dont know how to do. when i use for example:
[pc,score,latent,tsquare] = princomp(X);
red_dim = score(:,1:50);
how to reconstruct the matrix with fewer column?
when i use :
residuals = pcares(X,ndim)
the dimension of residuals is the same of x !!!!

Réponses (1)

David Sanchez
David Sanchez le 5 Juin 2013
you may use reshape.
help reshape
  1 commentaire
sorena mirzaie
sorena mirzaie le 5 Juin 2013
Modifié(e) : Walter Roberson le 5 Juin 2013
I check it,but in B=reshape(A),number of elements in A and B should be the same.
actually i want to reduce dimension my feature space according to its principle componants.
[pc,score,latent,tsquare] = princomp(X);
above line give me the principle componant of X,
i want to use just 50 dimensions among 320 dimensions.
red_dim = score(:,1:50);
above line do this for me ,but i dont know how to apply it to matrix X

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by