PCA to reduce dimensionality of feature vector

3 ビュー (過去 30 日間)
Nazeera Sheth
Nazeera Sheth 2017 年 12 月 18 日
回答済み: Matlaber 2019 年 2 月 19 日
I have a feature vector of size 4096x180 ( 180 samples ). I want to reduce the dimensionality using PCA. I have looked at various codes available but not able to apply it. How do I write the code in Matlab 2014?

回答 (2 件)

Mohammad Haghighat
Mohammad Haghighat 2018 年 1 月 25 日
Please check the Matlab's pca command:

Matlaber
Matlaber 2019 年 2 月 19 日
I just want to have a simple PCA to reduce my dimensionality of let say 400 * 5000 to 400 * 4
meaning reduce from 5000 to 4.
I am not sure where can I set the value of reduction.
coeff = pca(X)
I am trying to follow:
load hald
Then:
The dataset of ingredient is 13 * 4
Capture.PNG
coeff = pca(ingredients)
Output:
coeff = 4×4
-0.0678 -0.6460 0.5673 0.5062
-0.6785 -0.0200 -0.5440 0.4933
0.0290 0.7553 0.4036 0.5156
0.7309 -0.1085 -0.4684 0.4844
I am wondering can i change it to output of 13 *2 (13 x 2)

カテゴリ

Help Center および File ExchangeDimensionality 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