Generation

generate functionSun, 20 Nov 2022

Train a dataset of 80×1 array

import numpy as np # Generate a dataset and plot it np.random.seed(0) X, y = sklearn.datasets.make_moons(200, noise=0.20) plt.scatter(X[:,0], X[:,1], s=40, c=y, cmap=plt.cm.Spectral)

Want to kickstart your project?Use the new AI Studio to create your code