import matplotlib.pyplot as plt
colors = ["g", "r", "m", "c", "y", "k"]
for i in range(len(feature_coords)):
plt.scatter(feature_coords[i][0], feature_coords[i][1], c=colors[kmeans.labels_[i]], s=10)
plt.title('Clusterization of the topics')
plt.show()
你的问题不清楚
现在定义一个函数来提取标签,使用numpy
现在使用相同的函数检索标签
获取数据点
下面是我如何解决类似任务的:
相关问题 更多 >
编程相关推荐