我是非常新的机器学习python我试图使我的输出的每个集群与不同的颜色这里是代码。
mean = (1, 2)
cov = [[1, 0], [0, 1]]
x1, y1 = np.random.multivariate_normal(mean, cov, 500).T
mean = (10, 2)
cov = [[1, 0], [0, 1]]
x2, y2 = np.random.multivariate_normal(mean, cov, 500).T
mean = (5, 5)
cov = [[1, 0], [0, 1]]
x3, y3 = np.random.multivariate_normal(mean, cov, 500).T
aa = [x1,x2,x3]
bb = [y1,y2,y3]
plt.plot(aa, bb, 'x')
plt.axis('equal')
plt.show()
这是我得到的输出
我需要每个簇有相似的颜色,但不是全部相同。