Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. %matplotlib inline
  2.  
  3. import matplotlib.pyplot as plt
  4. import seaborn as sns
  5.  
  6. sns.set(style="ticks")
  7. sns.set_palette(palette='Set1')
  8.  
  9. fig_1 = plt.figure(figsize=(18,6))
  10.  
  11. sns.set(style="ticks")
  12. sns.set_palette(palette='Set1')
  13.  
  14. sns.regplot(x=pca_vectors[:,0],y=df_y, label='Principal Component 1',x_bins=10)
  15. sns.regplot(x=pca_vectors[:,1],y=df_y, label='Principal Component 2',x_bins=10)
  16. sns.regplot(x=pca_vectors[:,2],y=df_y, label='Principal Component 3',x_bins=10)
  17.  
  18. plt.title('Most Important Principal Components vs Reference Value')
  19. plt.xlabel('Principal Component Value')
  20. plt.ylabel('Reference Value')
  21. plt.legend()
  22. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement