aboutsummaryrefslogtreecommitdiff
path: root/config/bidirectional_tgtcls_1.py
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-07-24 11:30:27 -0400
committerAlex Auvolat <alex.auvolat@ens.fr>2015-07-24 11:30:40 -0400
commitff49937eef024916ac4560ce0134d94006e9e2e5 (patch)
tree5b8faba873efc03151ee457c459510c8f64b65f3 /config/bidirectional_tgtcls_1.py
parentac49e3cb892e0278ea1d52afdc314322000fae27 (diff)
downloadtaxi-ff49937eef024916ac4560ce0134d94006e9e2e5.tar.gz
taxi-ff49937eef024916ac4560ce0134d94006e9e2e5.zip
RNN & Bidir RNN refactoring (& fixes, maybe)
Diffstat (limited to 'config/bidirectional_tgtcls_1.py')
-rw-r--r--config/bidirectional_tgtcls_1.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/config/bidirectional_tgtcls_1.py b/config/bidirectional_tgtcls_1.py
index 88328e4..673c1e4 100644
--- a/config/bidirectional_tgtcls_1.py
+++ b/config/bidirectional_tgtcls_1.py
@@ -15,7 +15,7 @@ dim_embeddings = [
('week_of_year', 52, 10),
('day_of_week', 7, 10),
('qhour_of_day', 24 * 4, 10),
- ('taxi_id', 448, 10),
+ ('taxi_id', data.taxi_id_size, 10),
]
hidden_state_dim = 100
@@ -23,13 +23,11 @@ hidden_state_dim = 100
dim_hidden = [500, 500]
embed_weights_init = IsotropicGaussian(0.01)
-fork_weights_init = IsotropicGaussian(0.1)
-fork_biases_init = Constant(0.01)
-rec_weights_init = IsotropicGaussian(0.1)
-mlp_weights_init = IsotropicGaussian(0.1)
-mlp_biases_init = Constant(0.01)
+weights_init = IsotropicGaussian(0.1)
+biases_init = Constant(0.01)
batch_size = 20
batch_sort_size = 20
max_splits = 100
+