AS09 每次分群結果都差很多 #74
Answered
by
p09323028
YuXiangLin1234
asked this question in
Q&A: Assignments
-
|
老師您好, 我寫完作業後,一樣的程式碼重跑了幾次,但卻發覺每次分群的結果都差非常多,也就是這K群的主題會一直改變,可能第一次主題是 再麻煩老師回覆了 謝謝 |
Beta Was this translation helpful? Give feedback.
Answered by
p09323028
Dec 14, 2021
Replies: 2 comments 2 replies
-
|
不負責回覆。可以用
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
YuXiangLin1234
-
|
就是這樣而已
Jinze ***@***.***>於 2021年12月14日 週二,14:01寫道:
不負責回覆。
可以用random_state重現結果。
KMeans(n_clusters=true_k, init='k-means++', max_iter=200, n_init=10,
random_state=0)
TruncatedSVD(n_components=2, n_iter=7, random_state=4)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOJHTZ536M5FINF7VGA2VDUQ3MR3ANCNFSM5J5NIODQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Sent from Gmail Mobile
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
不負責回覆。可以用
random_state重現結果。KMeans(n_clusters=true_k, init='k-means++', max_iter=200, n_init=10, random_state=0)TruncatedSVD(n_components=2, n_iter=7, random_state=0)