필터 지우기
필터 지우기

Dimensional reduction by PCA

조회 수: 5 (최근 30일)
Berbia
Berbia 2013년 1월 29일
답변: Nikos Mp 2017년 9월 15일
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
Shashank Prasanna 2013년 2월 1일
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