-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop #1
Comments
For me, it always falls into an infinite loop (or it seems like) even with the provided dataset and notebook. Am I doing something wrong? |
naah...just put a break condition after like 300 iterations...(i choose 300 cause its default in sklearn.cluster) |
Good to know. I ran 1000 iterations but didn't know if it was "enough". |
k-means can not run infinte and has an upper bound of O^(nkd) in d-dimensional space. Related defention can be found " in https://www2.cs.duke.edu/courses/spring07/cps296.2/papers/kMeans-socg.pdf |
when i use another dataset of 4000, 2 shape...the norm>epsilon is always satisfied so it runs endlessly...so if you could use another parameter i.e max_iterations = 300(or some number), the problem would be solved!!
we can use the iterations to be compared with max_iterations and when the limit exceeds we break out of the while loop!!
The text was updated successfully, but these errors were encountered: