InvestorsHub Logo

dockzef

06/14/17 10:44 AM

#9876 RE: dockzef #9875

# Show the eigenspectrum
eigenvalues = pca.explained_variance_
print("The eigenvalues:\n\t", eigenvalues)

idx = eigenvalues.argsort()
print(idx)

plt.plot(idx, color='green', marker='D')
plt.ylabel('Eigenspectrum')
plt.show()

This is the Python code for the eigenspectrum search and the link

https://stackoverflow.com/questions/29422363/how-to-plot-an-eigenspectrum-in-python