taxi

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

bidirectional_direct.py (338B)


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