Skip to content

Instantly share code, notes, and snippets.

from sklearn.datasets import make_blobs
import matplotlib.pyplot as plt
X, y = make_blobs(
n_samples=150, n_features=2,
centers=5, cluster_std=0.5,
shuffle=True, random_state=0
)