Skip to content

Instantly share code, notes, and snippets.

@MinaGabriel
Created July 12, 2019 03:55
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 MinaGabriel/5f08d356afcead497f93e44d6f8898c0 to your computer and use it in GitHub Desktop.
Save MinaGabriel/5f08d356afcead497f93e44d6f8898c0 to your computer and use it in GitHub Desktop.
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