Now define the "fit" method that takes in that data and calculates the mean, normalizes the data, computes the covariance matrix, eigenvalues, and eigenvectors. Then the Eigenvectors are sorted based on eigenvalues. You may ask how, eigen vectors does dimensionality reduction?
Implementing PCA: Fit Method with Eigenvalue and Eigenvector Computation
By
–
Leave a Reply