kmeans_pytorch
kmeans_pytorch copied to clipboard
If selected is empty all data will become Nan
You don't handle the case when non of data is clustered into a cluster and if the num of cluster is big enough, all data will become nan.
yes, this will cause deading loops and I think we should manually initialize that value randomly.