Skip to content

Instantly share code, notes, and snippets.

@rdisipio
Created November 5, 2022 14:23
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 rdisipio/73347a35f4a8d2629ffdfd725791ebde to your computer and use it in GitHub Desktop.
Save rdisipio/73347a35f4a8d2629ffdfd725791ebde to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
plot = plt.scatter(X_pca[:,0], X_pca[:,1], c=y)
plt.legend(handles=plot.legend_elements()[0], labels=class_names)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment