The wrong file as follows:
#Generate PC1 eigenvectors
evect = pca.eigenvectors
PC1 = np.reshape(evect[0,:],(1300, 3))
np.savetxt("PC1_eigenVectors.dat", PC1, delimiter=" ", fmt="%8.5f")
The wrong file has been changed as follows:
#Generate PC1 eigenvectors file
evect = pca.eigenvectors
PC1 = np.reshape(evect[:,0],(1300, 3))
np.savetxt("PC1_eigenVectors.dat", PC1, delimiter=" ", fmt="%8.5f")
The main question: evect[0,:]
The wrong file as follows:
#Generate PC1 eigenvectors
evect = pca.eigenvectors
PC1 = np.reshape(evect[0,:],(1300, 3))
np.savetxt("PC1_eigenVectors.dat", PC1, delimiter=" ", fmt="%8.5f")
The wrong file has been changed as follows:
#Generate PC1 eigenvectors file
evect = pca.eigenvectors
PC1 = np.reshape(evect[:,0],(1300, 3))
np.savetxt("PC1_eigenVectors.dat", PC1, delimiter=" ", fmt="%8.5f")
The main question: evect[0,:]