Mercurial Hosting > traffic-intelligence
changeset 436:b64ff7fe7b45
corrected clustering bug (in indicator assignment)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 08 Jan 2014 02:56:12 -0500 |
parents | 17185fe77316 |
children | 830136bc0e18 |
files | python/events.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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]