aboutsummaryrefslogtreecommitdiff
path: root/config/bidirectional_tgtcls_1_momentum_maxlen.py
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-07-27 12:59:39 -0400
committerAlex Auvolat <alex.auvolat@ens.fr>2015-07-27 12:59:39 -0400
commit0021c3fb99d1cd3f8792a8cf5c35548815536428 (patch)
tree9edb909def7652579a1b6a40ecb311a61b40455b /config/bidirectional_tgtcls_1_momentum_maxlen.py
parent2a20bc827a8c1c9b6e74ef4e1234788207be45b8 (diff)
downloadtaxi-0021c3fb99d1cd3f8792a8cf5c35548815536428.tar.gz
taxi-0021c3fb99d1cd3f8792a8cf5c35548815536428.zip
Config files
Diffstat (limited to 'config/bidirectional_tgtcls_1_momentum_maxlen.py')
-rw-r--r--config/bidirectional_tgtcls_1_momentum_maxlen.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/config/bidirectional_tgtcls_1_momentum_maxlen.py b/config/bidirectional_tgtcls_1_momentum_maxlen.py
new file mode 100644
index 0000000..25e09a1
--- /dev/null
+++ b/config/bidirectional_tgtcls_1_momentum_maxlen.py
@@ -0,0 +1,39 @@
+import os
+import cPickle
+
+from blocks.algorithms import Momentum
+from blocks.initialization import IsotropicGaussian, Constant
+
+import data
+from model.bidirectional_tgtcls import Model, Stream
+
+
+with open(os.path.join(data.path, 'arrival-clusters.pkl')) as f: tgtcls = cPickle.load(f)
+
+dim_embeddings = [
+ ('origin_call', data.origin_call_train_size, 10),
+ ('origin_stand', data.stands_size, 10),
+ ('week_of_year', 52, 10),
+ ('day_of_week', 7, 10),
+ ('qhour_of_day', 24 * 4, 10),
+ ('taxi_id', data.taxi_id_size, 10),
+]
+
+hidden_state_dim = 100
+
+dim_hidden = [500, 500]
+
+embed_weights_init = IsotropicGaussian(0.01)
+weights_init = IsotropicGaussian(0.1)
+biases_init = Constant(0.01)
+
+batch_size = 400
+batch_sort_size = 20
+
+max_splits = 100
+train_max_len = 500
+
+# monitor_freq = 10000 # temporary, for finding good learning rate
+
+step_rule= Momentum(learning_rate=0.001, momentum=0.9)
+