Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. from sklearn import datasets
  3.  
  4. iris = datasets.load_iris()
  5. X = iris.data[:, 0:2]
  6. y = iris.target
  7.  
  8. plt.scatter(X[:, 0], X[:, 1], c=y, edgecolor='k')
  9. plt.xlabel('Sepal length')
  10. plt.ylabel('Sepal width')
  11.  
  12. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement