aboutsummaryrefslogtreecommitdiff
path: root/data/transformers.py
diff options
context:
space:
mode:
authorAlex Auvolat <katchup@adnab.me>2015-07-14 09:19:01 -0400
committerAlex Auvolat <katchup@adnab.me>2015-07-14 09:19:01 -0400
commit771dad76442a632c37656701f0ec6988a28c5a8d (patch)
tree8b823892f1958c77f182542c54aba510787ce722 /data/transformers.py
parentb53bb5ec249b31226bcb4a5c6a0c6bed12e959f6 (diff)
parenta2c922f0397c0438c9163ebeaded159315a01877 (diff)
downloadtaxi-771dad76442a632c37656701f0ec6988a28c5a8d.tar.gz
taxi-771dad76442a632c37656701f0ec6988a28c5a8d.zip
Merge branch 'master' of github.com:adbrebs/taxi
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 f994488..6d3f488 100644
--- a/data/transformers.py
+++ b/data/transformers.py
@@ -14,7 +14,7 @@ fuel.config.default_seed = 123
def at_least_k(k, v, pad_at_begin, is_longitude):
if len(v) == 0:
- v = numpy.array([data.porto_center[1 if is_longitude else 0]], dtype=theano.config.floatX)
+ v = numpy.array([data.train_gps_mean[1 if is_longitude else 0]], dtype=theano.config.floatX)
if len(v) < k:
if pad_at_begin:
v = numpy.concatenate((numpy.full((k - len(v),), v[0]), v))