taxi

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

rnn_direct.py (308B)


      1 from blocks.bricks.base import lazy
      2 
      3 from model.rnn import RNN, Stream
      4 import data
      5 
      6 
      7 class Model(RNN):
      8     @lazy()
      9     def __init__(self, config, **kwargs):
     10         super(Model, self).__init__(config, **kwargs)
     11 
     12     def process_rto(self, rto):
     13         return (rto * data.train_gps_std) + data.train_gps_mean