ฉันใช้อัลกอริธึม kmeans2 ตั้งแต่สีพิกเซลแบบ scipy ไปจนถึงสีคลัสเตอร์ในรูปภาพ เพื่อให้ได้สีโดยเฉลี่ยอันดับต้นๆ ของรูปภาพ
ฉันสับสนกับความหมายของพารามิเตอร์นี้:
iter : int
Number of iterations of the k-means algrithm to run. Note that this differs in meaning from the iters parameter to the kmeans function.
ถ้าฉันต้องการให้อัลกอริทึม kmeans ทำงานจนกว่าคลัสเตอร์จะไม่เปลี่ยนแปลง ฉันจะตั้งค่า iter
ให้สูงหรือไม่ มีวิธีหาค่า ดีที่สุด iter
หรือไม่