From dc430951d6cb660ab804c7e6250aea1acc2dcd9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Mon, 13 Jul 2015 16:38:51 +0000 Subject: Fix at_least_k --- data/transformers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3