kmeans_pytorch icon indicating copy to clipboard operation
kmeans_pytorch copied to clipboard

If selected is empty all data will become Nan

Open Joshuaoneheart opened this issue 1 year ago • 1 comments

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.

Joshuaoneheart avatar Dec 10 '23 08:12 Joshuaoneheart

yes, this will cause deading loops and I think we should manually initialize that value randomly.

XA23i avatar Mar 01 '24 11:03 XA23i