Mercurial > hg > nsaunier > traffic-intelligence
diff samples/performances.txt @ 746:e7ff0f60fef8
merged new developments (indicator and trajectory clustering)
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 10 Sep 2015 15:52:45 -0400 |
| parents | a850a4f92735 |
| children |
line wrap: on
line diff
--- a/samples/performances.txt Mon Aug 10 01:06:59 2015 -0400 +++ b/samples/performances.txt Thu Sep 10 15:52:45 2015 -0400 @@ -1,3 +1,9 @@ +python -m timeit 'from utils import LCSS; from numpy.random import random_sample; lcss = LCSS(metric = "cityblock", epsilon = 0.1); lcss.compute(random_sample((1000,2)), random_sample((2000, 2)))' +10 loops, best of 3: 1.6 sec per loop + +python -m timeit 'from utils import LCSS; from numpy.random import random_sample; lcss = LCSS(similarityFunc = lambda x,y: (abs(x[0]-y[0]) <= 0.1) and (abs(x[1]-y[1]) <= 0.1)); lcss.compute(random_sample((1000,2)), random_sample((2000, 2)))' +10 loops, best of 3: 3.48 sec per loop +######## Performance report using ../../Data/norway/2_video/20130606-0830.sqlite #### test query positions
