Mercurial Hosting > traffic-intelligence
diff python/ml.py @ 665:15e244d2a1b5
corrected bug with circular import for VideoFilenameAddable, moved to base module
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 20 May 2015 13:57:47 +0200 |
parents | 3058e00887bc |
children | da1352b89d02 |
line wrap: on
line diff
--- a/python/ml.py Wed May 20 12:04:22 2015 +0200 +++ b/python/ml.py Wed May 20 13:57:47 2015 +0200 @@ -3,7 +3,6 @@ import numpy as np -__metaclass__ = type class Model(object): '''Abstract class for loading/saving model''' @@ -28,7 +27,7 @@ return np.float32([self.model.predict(s) for s in samples]) -class Centroid: +class Centroid(object): 'Wrapper around instances to add a counter' def __init__(self, instance, nInstances = 1):