Dimensional reduction by PCA

5 次查看(过去 30 天)
I have an vector x whose dimension has to be reduced to 5 x 50 by PCA.
[5,500]=size(x);
while giving the no_dimns=50 I faced a problem
Warning: Target dimensionality reduced to 5.
Is it possible to reduce the dimension of matrix from 5 x 500 to 5 x 50??

采纳的回答

Shashank Prasanna
Shashank Prasanna 2013-1-29
I think that the code expects you provide x' or x transpose where the rows are 500 and columns are 5
  8 个评论
Shashank Prasanna
It appears the file in your link doesn't reconstruct but just gives you the reduced scores, which means you can do:
[pc,score,latent,tsquare] = princomp(X);
red_dim = score(:,1:50);
PCARES actually reconstructs the scores back to the original basis.
Berbia
Berbia 2013-2-1
I thank you for your prompt response.

请先登录,再进行评论。

更多回答(1 个)

Nikos Mp
Nikos Mp 2017-9-15
2 questions: 1.So we take the scores or the reconstructed data? 2.P.Component = feature ? So we choose the best PComponents?

类别

Help CenterFile Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by