n_samples = 1500
X_noisy_circles, y_noisy_circles = datasets.make_circles(n_samples=n_samples, factor=.5, noise=.05)
X_noisy_moons,y_noisy_moons = datasets.make_moons(n_samples=n_samples, noise=.05)
X_blobs,y_blobs = datasets.make_blobs(n_samples=n_samples, random_state=8)
X_blobs_varied,y_blobs_varied = datasets.make_blobs(n_samples=n_samples, cluster_std=[1.0, 2.5, 0.5], random_state=random_state)
random_state = 170 X, y_aniso = datasets.make_blobs(n_samples=n_samples, random_state=random_state) transformation = [[0.6, -0.6], [-0.4, 0.8]] X_aniso = np.dot(X, transformation)
|