taxi

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

commit d03fb73c8f95c9ec2f4dec25062e13223a709183
parent b1da6fb4e644dcdec6d90c3f0ae018001a98a4b6
Author: Étienne Simon <esimon@esimon.eu>
Date:   Fri, 24 Apr 2015 16:42:33 -0400

Fix typo in transformers

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

diff --git a/transformers.py b/transformers.py @@ -17,7 +17,7 @@ def add_extremities(stream, k): def extremities(x): return (x[id_polyline][:k], x[id_polyline][-k:]) stream = Filter(stream, lambda x: len(x[id_polyline])>=k) - stream = Mapping(stream, extremeties, ('first_k', 'last_k')) + stream = Mapping(stream, extremities, ('first_k', 'last_k')) return stream def add_destination(stream):