Skip to content

Commit

Permalink
update code.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wnma3mz committed Mar 1, 2018
1 parent 67aa826 commit 9eff305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter7/code.py
Expand Up @@ -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__":
Expand Down

0 comments on commit 9eff305

Please sign in to comment.