Principle Component Analysis

2 次查看(过去 30 天)
I'm performing PCA on a sample from my dataset (using princomp) containing 5 attributes and 20,000 values for each attribute. I then want to classify the remainder of the dataset having taken out the least important attributes. Using PCA is it possible, using the ouputs that princomp provides, to remove one or two of the attributes that are less important for classification purposes? Or does PCA not even provide this information?

采纳的回答

Andrew Newell
Andrew Newell 2011-3-28
If your data are in the matrix X and ndim is the number of attributes you want to retain, then you can use
[residuals,reconstructed] = pcares(X,ndim);
then reconstructed is what you want.

更多回答(0 个)

类别

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