Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created February 3, 2021 16:48
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 amankharwal/ade01b09f2d015bfb7665a6fce031cb8 to your computer and use it in GitHub Desktop.
Save amankharwal/ade01b09f2d015bfb7665a6fce031cb8 to your computer and use it in GitHub Desktop.
clusterColor = {0: u'yellow', 1: u'green', 2: 'blue', -1: u'red'}
colors = [clusterColor[label] for label in labels]
plt.figure(figsize=(12, 10))
plt.scatter(x_principal['V1'], x_principal['V2'], c=colors)
plt.title("Implementation of DBSCAN Clustering", fontname="Times New Roman",fontweight="bold")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment