subhadarship / kmeans_pytorch

kmeans using PyTorch
https://subhadarship.github.io/kmeans_pytorch
MIT License
469 stars 75 forks source link

Input of the same data leads to different results. #35

Open zchwang opened 1 year ago

zchwang commented 1 year ago

Hi,

I tried to cluster the same data with Kmeans_pytorch, but got different clustering results. What is the cause of this?

Looking forward to your reply.

qbeer commented 9 months ago

Haven't went through the code, but K-means itself is an inherently random algorithm and the outcome depends on the initialization. However, I think for an easily clustering dataset, the difference in the outcomes should be minimal.