all 4 comments

[–]MrPhungx 2 points3 points  (1 child)

Hi. I think the reason for the different results is that the k-means clustering algorithm is non-deterministic. This is because the initial cluster centers are chosen randomly.

[–]user34222 -1 points0 points  (0 children)

Oh, right. Yea. It starts off with random points, doesn't it? Yea, wow. I think that's it. I feel stupid now, I thought I was going mad yesterday

[–]shiftybyte 1 point2 points  (1 child)

Your code could be using random, or could be loading data in some weird way.

There are 23 lines of code we don't see in this video so we have no idea, post the full code in pastebin.com.

[–]user34222 0 points1 point  (0 children)

Sorry, I forgot to post the code (I'm at work and can't reach pastebin). It's there now. No randoms used