aboutsummaryrefslogtreecommitdiff
path: root/data/transformers.py
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-07-29 12:06:00 -0400
committerAlex Auvolat <alex.auvolat@ens.fr>2015-07-29 12:06:00 -0400
commitdefab74395f2ddb2641bba6ab8d18bdedde7a334 (patch)
tree17821ee924e2bdcd2927ed1e61cbf410dac40108 /data/transformers.py
parentca40e5c81d385e1422cebe40e009d7e93b95bfbb (diff)
downloadtaxi-defab74395f2ddb2641bba6ab8d18bdedde7a334.tar.gz
taxi-defab74395f2ddb2641bba6ab8d18bdedde7a334.zip
p-value caluculation script
Diffstat (limited to 'data/transformers.py')
-rw-r--r--data/transformers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/transformers.py b/data/transformers.py
index f0ed44a..479afc5 100644
--- a/data/transformers.py
+++ b/data/transformers.py
@@ -187,7 +187,7 @@ class _window_helper(object):
if x.shape[0] < self.window_len:
x = numpy.concatenate(
- [x, numpy.full((self.window_len - x.shape[0],), x[-1])])
+ [numpy.full((self.window_len - x.shape[0],), x[0]), x])
y = [x[i: i+x.shape[0]-self.window_len+1][:, None]
for i in range(self.window_len)]