Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement