Python, Machine Learning, Statistics, Data Science, Technology.
print("cov_matrix shape:",cov_matrix.shape) print("Covariance_matrix",cov_matrix) Calculating Eigen Vectors & Eigen Values: Using NumPy linear algebra function eigenvalues, eigenvectors = np.linalg.eig(cov_matrix) print('Eigen Vectors \n%s', eigenvectors) print('\n Eigen Values \n%s', eigenvalues)