Mercurial > hg > nsaunier > traffic-intelligence
comparison trafficintelligence/tests/utils.txt @ 1277:7493751bfe19
update to test as it seems non deterministic
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 27 Jun 2024 15:31:17 -0400 |
| parents | bae8de98406f |
| children | 76f5693b530c |
comparison
equal
deleted
inserted
replaced
| 1276:bae8de98406f | 1277:7493751bfe19 |
|---|---|
| 49 | 49 |
| 50 >>> filterCategoricalMovingWindow([3]*3 + [4]*4, 2) | 50 >>> filterCategoricalMovingWindow([3]*3 + [4]*4, 2) |
| 51 [3, 3, 3, 4, 4, 4, 4] | 51 [3, 3, 3, 4, 4, 4, 4] |
| 52 >>> filterCategoricalMovingWindow([3]*6 + [4], 2) | 52 >>> filterCategoricalMovingWindow([3]*6 + [4], 2) |
| 53 [3, 3, 3, 3, 3, 3, 3] | 53 [3, 3, 3, 3, 3, 3, 3] |
| 54 >>> filterCategoricalMovingWindow(['a']*3 + ['c'] + ['b']*3, 2) | 54 >>> 'c' in filterCategoricalMovingWindow(['a']*3 + ['c'] + ['b']*3, 2) |
| 55 ['a', 'a', 'a', 'b', 'b', 'b', 'b'] | 55 False |
| 56 >>> filterCategoricalMovingWindow([3], 2) | 56 >>> filterCategoricalMovingWindow([3], 2) |
| 57 [3] | 57 [3] |
| 58 | 58 |
| 59 >>> filterMovingWindow(arange(10), 3) | 59 >>> filterMovingWindow(arange(10), 3) |
| 60 array([0., 1., 2., 3., 4., 5., 6., 7., 8., 9.]) | 60 array([0., 1., 2., 3., 4., 5., 6., 7., 8., 9.]) |
