aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-07-24 17:47:54 -0400
committerAlex Auvolat <alex.auvolat@ens.fr>2015-07-24 17:47:54 -0400
commite1e2ff095a14d93e99960330a666c4d9a8fdf0ac (patch)
treeee9efe87bbf905463b183d063c7a8710c6ee04eb /config
parentb57d922d6aba4dab4943f275ee55302b40db127d (diff)
downloadtaxi-e1e2ff095a14d93e99960330a666c4d9a8fdf0ac.tar.gz
taxi-e1e2ff095a14d93e99960330a666c4d9a8fdf0ac.zip
Add bidirectional_tgtcls_2
Diffstat (limited to 'config')
-rw-r--r--config/bidirectional_tgtcls_2.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/config/bidirectional_tgtcls_2.py b/config/bidirectional_tgtcls_2.py
new file mode 100644
index 0000000..f1bf7bd
--- /dev/null
+++ b/config/bidirectional_tgtcls_2.py
@@ -0,0 +1,33 @@
+import os
+import cPickle
+
+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 = 20
+
+dim_hidden = [100]
+
+embed_weights_init = IsotropicGaussian(0.01)
+weights_init = IsotropicGaussian(0.1)
+biases_init = Constant(0.01)
+
+batch_size = 300
+batch_sort_size = 20
+
+max_splits = 200
+