Principal Component Analysis (PCA) in matlab

조회 수: 20 (최근 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 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