Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saimadhu-polamuri/a1501660f87c11c614cdc30d6611b89b to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/a1501660f87c11c614cdc30d6611b89b to your computer and use it in GitHub Desktop.
## PCA Visualization
a_std = pca.transform(transformed)
plt.figure()
plt.title(label="PCA Visualization", fontsize=30, color="blue")
plt.xlabel("Principal Component 1")
plt.ylabel("Principal Component 2")
plt.title(label="PCA Visualization", fontsize=40, color="blue")
plt.scatter(a_std[:, 0], a_std[:, 1], c=b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment