Created
July 12, 2019 03:55
-
-
Save MinaGabriel/5f08d356afcead497f93e44d6f8898c0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import matplotlib.pyplot as plt | |
from sklearn import datasets | |
iris = datasets.load_iris() | |
X = iris.data[:, 0:2] | |
y = iris.target | |
plt.scatter(X[:, 0], X[:, 1], c=y, edgecolor='k') | |
plt.xlabel('Sepal length') | |
plt.ylabel('Sepal width') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment