aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorÉtienne Simon <esimon@esimon.eu>2015-07-13 16:38:51 +0000
committerÉtienne Simon <esimon@esimon.eu>2015-07-13 16:38:51 +0000
commitdc430951d6cb660ab804c7e6250aea1acc2dcd9d (patch)
tree657aa861be60c1a88ec3cc69e4845cc18bd3b290 /data
parent3fa43e0a437fa776e1dcb4949e7c6d7574239caf (diff)
downloadtaxi-dc430951d6cb660ab804c7e6250aea1acc2dcd9d.tar.gz
taxi-dc430951d6cb660ab804c7e6250aea1acc2dcd9d.zip
Fix at_least_k
Diffstat (limited to 'data')
-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))