Restart丶的博客D:\anaconda3\envs\torch\lib\site-packages\numpy\core\fromnumeric.py:3373: RuntimeWarning: Mean of empty slice. out=out, **kwargs) D:\anaconda3\envs\torch\lib\site-packages\numpy\core\_methods.py:170:...
Sun2AM的博客RuntimeWarning: Mean of empty slice. for cent_i in range(k): # 重新计算中心点 k_cluster = data[np.nonzero(cluster == cent_i)] # 加上判断 if len(k_cluster) != 0: ...