Guest User

Untitled

a guest
Jun 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3. from sklearn.datasets import make_classification
  4.  
  5. # set for reproducibility
  6. np.random.seed(0)
  7.  
  8. X, y = make_classification(
  9. n_samples=100, n_features=2, n_informative=2,
  10. n_redundant=0, n_repeated=0, n_classes=2
  11. )
  12.  
  13. plt.scatter(
  14. X[:, 0], X[:, 1], c=y
  15. linestyle='None', marker='.',
  16. )
  17. plt.show()
Add Comment
Please, Sign In to add comment