Mercurial Hosting > traffic-intelligence
comparison python/ml.py @ 734:1d4dcb5c8708 dev
first example script to learn prototypes
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 11 Aug 2015 12:55:09 -0400 |
parents | b02431a8234c |
children | 0e875a7f5759 |
comparison
equal
deleted
inserted
replaced
733:c35e4a4b199d | 734:1d4dcb5c8708 |
---|---|
159 if assign: | 159 if assign: |
160 prototypeIndices.remove(smallestClusterIndex) | 160 prototypeIndices.remove(smallestClusterIndex) |
161 indices.append(smallestClusterIndex) | 161 indices.append(smallestClusterIndex) |
162 | 162 |
163 return prototypeIndices, labels | 163 return prototypeIndices, labels |
164 | |
165 def motionPatternLearning(objects, maxDistance): | |
166 ''' | |
167 Option to use only the (n?) longest features per object instead of all for speed up | |
168 TODO''' | |
169 pass |