Created
August 24, 2020 03:42
-
-
Save saimadhu-polamuri/8b1fa0dd6021c7e0793343d644b9bac8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Moons dataset | |
import numpy as np | |
from sklearn.datasets import make_moons | |
np.random.seed(800) | |
x, y = make_moons(n_samples=100, noise=0.2, random_state=1) | |
# plot the graph | |
import matplotlib.pyplot as plt | |
plt.scatter(x[:,0],x[:,1],c=y,s=100) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment