Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- import numpy as np
- from sklearn.datasets import make_classification
- # set for reproducibility
- np.random.seed(0)
- X, y = make_classification(
- n_samples=100, n_features=2, n_informative=2,
- n_redundant=0, n_repeated=0, n_classes=2
- )
- plt.scatter(
- X[:, 0], X[:, 1], c=y
- linestyle='None', marker='.',
- )
- plt.show()
Add Comment
Please, Sign In to add comment