Mercurial Hosting > traffic-intelligence
diff trafficintelligence/tests/ml.txt @ 1030:aafbc0bab925
moved method around to avoid cross-dependencies
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 19 Jun 2018 10:04:52 -0400 |
parents | cc5cb04b04b0 |
children |
line wrap: on
line diff
--- a/trafficintelligence/tests/ml.txt Mon Jun 18 22:50:59 2018 -0400 +++ b/trafficintelligence/tests/ml.txt Tue Jun 19 10:04:52 2018 -0400 @@ -1,6 +1,6 @@ >>> from math import fabs >>> from numpy import ones ->>> from ml import prototypeCluster +>>> from trafficintelligence.ml import prototypeCluster >>> nTrajectories = 7 >>> similarityFunc = lambda x, y: 1.-fabs(x-y)/(nTrajectories-1)