-
-
Save quantra-go-algo/92845cbbe038c418028e0de060085aad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iris_X = iris_data.iloc[:, [0, 1, 2,3]].values | |
iris_Y = iris_data.iloc[:,4].values | |
import matplotlib.pyplot as plt | |
plt.figure(figsize=(10, 7)) | |
plt.scatter(iris_X[iris_Y == 0, 0], iris_X[iris_Y == 0, 1], s=100, c='blue', label='Type 1') | |
plt.scatter(iris_X[iris_Y == 1, 0], iris_X[iris_Y == 1, 1], s=100, c='yellow', label='Type 2') | |
plt.scatter(iris_X[iris_Y == 2, 0], iris_X[iris_Y == 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