Open sunshineatnoon opened 8 years ago
Yes, I had some pb too with the kmean implementation. I you look at the code, they try to accumulate the count values accross the iterations. Don't really understand why. https://github.com/koraykv/unsup/blob/master/kmeans.lua#L94
I have a tensor with dimension: 204x4096 where 204 is the number of samples while 4096 is feature dimension. After 10000 iterations of clustering by kmeans, it returns a counts like this: [1919809, 60009, 60013, 0, 169]. This is definitely wrong since I only have 204 samples. The screen shot is below:
And here is my code, could anyone please tell where I did wrong?