Skip to content
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

Open
ASH1998 opened this issue Jul 16, 2017 · 4 comments
Open

Infinite loop #1

ASH1998 opened this issue Jul 16, 2017 · 4 comments

Comments

@ASH1998
Copy link

ASH1998 commented Jul 16, 2017

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!!

@jinchuika
Copy link

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?

@ASH1998
Copy link
Author

ASH1998 commented Jul 17, 2017

naah...just put a break condition after like 300 iterations...(i choose 300 cause its default in sklearn.cluster)
you can use the iterations which is inside the while loop...i think he forgot to do so...the purpose of iterations is that only

@jinchuika
Copy link

Good to know. I ran 1000 iterations but didn't know if it was "enough".

@turkialjrees
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants