Principal Component Analysis (PCA) in matlab

17 ビュー (過去 30 日間)
NN
NN 2020 年 12 月 2 日
編集済み: KALYAN ACHARJYA 2020 年 12 月 2 日
Hi,
I am trying to do neural network forecasting of data and i would like to apply PCA to the input data (both testing and training ).
Can i use the syntax coeff = pca(X) for converting input data to get the principal components and use the output of this command as training and test data for neural network.
Is there any other procedures to follow and especially to improve accuracy
Or should i use this command ?

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 12 月 2 日
編集済み: KALYAN ACHARJYA 2020 年 12 月 2 日
To perform principal component analysis directly on the data matrix, use pca.
Matlab Doc Suggested:
pcacov does not standardize V to have unit variances. To perform principal component analysis on standardized variables, use the correlation matrix R = V./(SD*SD'), where SD = sqrt(diag(V)), in place of V. To perform principal component analysis directly on the data matrix, use pca.

カテゴリ

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