Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created December 27, 2023 07:33
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 quantra-go-algo/667fd584ace43ebaff4c0dc7d9168205 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/667fd584ace43ebaff4c0dc7d9168205 to your computer and use it in GitHub Desktop.
plt.figure(figsize=(10, 7))
plt.scatter(iris_X[labels == 0, 0], iris_X[labels == 0, 1], s = 100, c = 'blue', label = 'Type 1')
plt.scatter(iris_X[labels == 1, 0], iris_X[labels == 1, 1], s = 100, c = 'yellow', label = 'Type 2')
plt.scatter(iris_X[labels == 2, 0], iris_X[labels == 2, 1], s = 100, c = 'green', label = 'Type 3')
plt.legend()
plt.xlabel('Sample Index')
plt.ylabel('Euclidean Distance')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment