Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saimadhu-polamuri/8b1fa0dd6021c7e0793343d644b9bac8 to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/8b1fa0dd6021c7e0793343d644b9bac8 to your computer and use it in GitHub Desktop.
## 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