# HG changeset patch # User Nicolas Saunier # Date 1389167772 18000 # Node ID b64ff7fe7b45c675c0941543c7d4514099224fdd # Parent 17185fe77316095261c6f735eddec2f5331e9642 corrected clustering bug (in indicator assignment) diff -r 17185fe77316 -r b64ff7fe7b45 python/events.py --- a/python/events.py Mon Dec 02 16:39:50 2013 -0500 +++ b/python/events.py Wed Jan 08 02:56:12 2014 -0500 @@ -186,7 +186,7 @@ indices = [i for i in range(similarityMatrix.shape[0]) if i not in prototypeIndices] for i in prototypeIndices: labels[i] = i - for i in indices[1:]: + for i in indices: prototypeIndex = similarityMatrix[i][prototypeIndices].argmax() labels[i] = prototypeIndices[prototypeIndex]