diff options
Diffstat (limited to 'data/transformers.py')
-rw-r--r-- | data/transformers.py | 2 |
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)] |