We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 364496f commit fbe54c8Copy full SHA for fbe54c8
functions/I2MC_funcs.py
@@ -743,7 +743,7 @@ def kmeans2(data):
743
# In the very unusual event that the cluster had only
744
# one member, pick any other non-singleton point.
745
cFrom = np.argwhere(m>1)[0]
746
- lonely = np.argwhere(mlabel==cFrom)[0]
+ lonely = np.argwhere(label==cFrom)[0]
747
label[lonely] = i
748
749
# Update clusters from which points are taken
0 commit comments