From 9013799ebca1c426c3c3e9019eb71018b253b025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Tue, 21 Jul 2015 21:08:35 -0400 Subject: Add bidirectional --- model/bidirectional_direct.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 model/bidirectional_direct.py (limited to 'model/bidirectional_direct.py') diff --git a/model/bidirectional_direct.py b/model/bidirectional_direct.py new file mode 100644 index 0000000..81b33bd --- /dev/null +++ b/model/bidirectional_direct.py @@ -0,0 +1,13 @@ +from blocks.bricks.base import lazy + +from model.bidirectional import BidiRNN, Stream +import data + + +class Model(BidiRNN): + @lazy() + def __init__(self, config, **kwargs): + super(Model, self).__init__(config, **kwargs) + + def process_outputs(self, outputs): + return (outputs * data.train_gps_std) + data.train_gps_mean -- cgit v1.2.3