필터 지우기
필터 지우기

Principle Component Analysis

조회 수: 2 (최근 30일)
Tim Micallef
Tim Micallef 2011년 3월 28일
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