Created
March 14, 2022 17:25
-
-
Save peeush-agarwal/f88cc066bcd894a1a535d24934c07710 to your computer and use it in GitHub Desktop.
PCA: computation of eigen values for the dataframe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
cov_mat = np.cov(X_train_std.T) | |
eigen_vals, eigen_vecs = np.linalg.eig(cov_mat) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment