def dataset_generator():
"""
generate multi-class dataset
:return: data X and its labels
"""
plt.title("Three blobs", fontsize='small')
X, y = make_blobs(n_features=2, centers=3)
plt.scatter(X[:, 0], X[:, 1], marker='o', c=y)
plt.show()
#np.save('X_multi.npy', X)
#np.save('y_multi.npy', y)
return X, y
GP_multi_classification.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录