Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %matplotlib inline
- import matplotlib.pyplot as plt
- import seaborn as sns
- sns.set(style="ticks")
- sns.set_palette(palette='Set1')
- fig_1 = plt.figure(figsize=(18,6))
- sns.set(style="ticks")
- sns.set_palette(palette='Set1')
- sns.regplot(x=pca_vectors[:,0],y=df_y, label='Principal Component 1',x_bins=10)
- sns.regplot(x=pca_vectors[:,1],y=df_y, label='Principal Component 2',x_bins=10)
- sns.regplot(x=pca_vectors[:,2],y=df_y, label='Principal Component 3',x_bins=10)
- plt.title('Most Important Principal Components vs Reference Value')
- plt.xlabel('Principal Component Value')
- plt.ylabel('Reference Value')
- plt.legend()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement