From 389bfd3637dfb523a3e4194c7281a0c538166546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Thu, 23 Jul 2015 22:15:08 -0400 Subject: Fix RNN Stream without tvt --- model/rnn.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'model/rnn.py') diff --git a/model/rnn.py b/model/rnn.py index 7bdba3b..b4c6550 100644 --- a/model/rnn.py +++ b/model/rnn.py @@ -155,6 +155,8 @@ class Stream(object): stream = transformers.TaxiExcludeEmptyTrips(stream) stream = transformers.taxi_add_datetime(stream) + if not data.tvt: + stream = transformers.add_destination(stream) stream = transformers.Select(stream, tuple(v for v in req_vars if not v.endswith('_mask'))) stream = transformers.balanced_batch(stream, key='latitude', batch_size=self.config.batch_size, batch_sort_size=self.config.batch_sort_size) -- cgit v1.2.3