PCA which Features are kept?
6 次查看(过去 30 天)
显示 更早的评论
I'm struggeling with the Classification Learner App. I just tried the PCA on my features and it says something like this: After training, 3 components were kept. Explained variance per component (in order): 67.7%, 25.5%, 5.0%, 1.2%. How do I know which components are kept?
0 个评论
采纳的回答
Brendan Hamm
2016-12-19
PCA is just a transformation of your feature space via centering and rotation such that your components (the resulting basis vectors) are pointing in the direction of greatest variance in descending order. That is component 1 explains the most variance, component 2 the next, and the last explains the least. So this is really just a mapping from an n-dimensional space to an n-dimensional space.
It is common to then choose only a subset of the space to perform your analysis. By default the Classification Learner App will choose enough components to explain at least 95% of the original variance. In your case it seems you had 4 components and more than 95% of the variance in that 4-dimensional space can be explained by a 3-dimensional subspace. However, you should not think of this in terms of the original 4-factors as there is some information present from all of those 4-dimensions (excepting in the special case of multi-collinearity).
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!