提交 9eff3053 编写于 作者: wnma3mz's avatar wnma3mz

update code.py

上级 67aa826a
......@@ -69,8 +69,8 @@ def programmer_4():
kmodel = KMeans(n_clusters=k, n_jobs=4)
kmodel.fit(data)
kmodel.cluster_centers_ # 查看聚类中心
kmodel.labels_ # 查看各样本对应的类别
print(kmodel.cluster_centers_) # 查看聚类中心
print(kmodel.labels_) # 查看各样本对应的类别
if __name__ == "__main__":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册