InvestorsHub Logo
Followers 28
Posts 7358
Boards Moderated 1
Alias Born 09/13/2010

Re: dockzef post# 9875

Wednesday, 06/14/2017 10:44:12 AM

Wednesday, June 14, 2017 10:44:12 AM

Post# of 10460
# 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

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.