selection of features using PCA
问题 I am doing unsupervised classification. For this I have 8 features (Variance of Green, Std. div. of Green , Mean of Red, Variance of Red, Std. div. of Red, Mean of Hue, Variance of Hue, Std. div. of Hue) for classification per image and I want to select 3 most significant features using PCA. I have written the following code for feature selection (where dimension of feature is : 179X8) : for c=1:size(feature,1) feature(c,:)=feature(c,:)-mean(feature) end DataCov=cov(feature); % covariance