aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-07-02 14:32:23 -0400
committerAlex Auvolat <alex.auvolat@ens.fr>2015-07-02 14:32:23 -0400
commit6cf80aff3e4dc57d13a33c2946bc0ae57cfae6b8 (patch)
tree938058560a56772102b34e6b5f18301349a52688 /model
parent5096e0cdae167122d07b09cd207a04f28ea5c3f5 (diff)
downloadtaxi-6cf80aff3e4dc57d13a33c2946bc0ae57cfae6b8.tar.gz
taxi-6cf80aff3e4dc57d13a33c2946bc0ae57cfae6b8.zip
More determinism
Diffstat (limited to 'model')
-rw-r--r--model/mlp.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/model/mlp.py b/model/mlp.py
index a6f3991..7e7d092 100644
--- a/model/mlp.py
+++ b/model/mlp.py
@@ -1,5 +1,8 @@
from theano import tensor
+import fuel
+import blocks
+
from fuel.transformers import Batch, MultiProcessing
from fuel.streams import DataStream
from fuel.schemes import ConstantScheme, ShuffledExampleScheme
@@ -11,6 +14,8 @@ from data.hdf5 import TaxiDataset, TaxiStream
from data.cut import TaxiTimeCutScheme
from model import ContextEmbedder
+blocks.config.default_seed = 123
+fuel.config.default_seed = 123
class FFMLP(Initializable):
def __init__(self, config, output_layer=None, **kwargs):