center=[[1,1],[-1,-1],[1,-1]]
cluster_std=0.3
X,labels=make_blobs(n_samples=200,centers=center,n_features...单标签
make_blobs 产生多类数据集,对每个类的中心和标准差有很好的控制
输入参数:
sklearn.datasets.samples_generator.make_blobs(n_samples...centers = [(-3, -3),(3, 3)]
cluster_std = [0.5,0.7]
X,y = make_blobs(n_samples=1000, centers=centers...产生3类样本点,3个距离中心,方差分别是0.5,0.7,0.5,样本点2000个
from sklearn.datasets.samples_generator import make_blobs
centers...= [(-3, -3),(0,0),(3, 3)]
cluster_std = [0.5,0.7,0.5]
X,y = make_blobs(n_samples=2000, centers=centers