문제

I use matlab's princomp function to do PCA. From my understanding, I could check the latent to decide how many dimensions I need.

[coeff, score, latent, t2] = princomp(fdata);
 cumsum(latent)./sum(latent);

And by using trainMatrix = coeff(:,1:10) (I choose the top 10 dimensions), and newData = data*trainMatrix, I could get the reduced data.

But how could I figure out which dimension is reduced and which 10 dimensions are remained?

I mean if I have 30 features, could I figure out after princomp, which 10 features (the column index of original data) I reserved?

Thanks.

도움이 되었습니까?

해결책

The new dimensions correspond to a linear combination of the original dimensions, i.e each new feature is expressed in terms of all the old ones with varying weights.

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