taxi

Winning entry to the Kaggle taxi competition
git clone https://esimon.eu/repos/taxi.git
Log | Files | Refs | README

commit dc430951d6cb660ab804c7e6250aea1acc2dcd9d
parent 3fa43e0a437fa776e1dcb4949e7c6d7574239caf
Author: Étienne Simon <esimon@esimon.eu>
Date:   Mon, 13 Jul 2015 16:38:51 +0000

Fix at_least_k

Diffstat:
Mdata/transformers.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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))