Python, Machine Learning, Statistics, Data Science, Technology.
set normalize the training set using standard scalar Calculate the covariance matrix. Calculate the eigenvectors and their eigenvalues. Sort the eigenvectors according to their eigenvalues in descending order. Choose the first K eigenvectors (where k is the dimension we’d like to end up with).