[ZJU-Machine Learning] Feature extraction—Principal Component Analysis PCA

Insert image description here
Principal component analysis can be viewed as a one-layer neural network with M neurons. X has no label (Label). (autoencoder)
Insert image description here

PCA approach

Essence: Find the direction that maximizes the variance and project in that direction. (The direction of maximum variance refers to the maximum variance after projection, because if the points are gathered together after projection, they can be approximated into one point and cannot be distinguished)

When M=1

Suppose there are p x training samples in total
Insert image description here

Transform Y:
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
normalize a1
Insert image description here
Insert image description here

When M>1

Insert image description here
Insert image description here

Insert image description here

PCA algorithm

Insert image description here

To find the eigenvalue, you can use the SVD algorithm (Singular Value Decomposition) to quickly find it.

Insert image description here

Guess you like

Origin blog.csdn.net/qq_45654306/article/details/113533113