dest_mlp_2_cs.py (655B)
1 from blocks.initialization import IsotropicGaussian, Constant 2 3 import data 4 from model.dest_mlp import Model, Stream 5 6 7 n_begin_end_pts = 5 # how many points we consider at the beginning and end of the known trajectory 8 9 dim_embeddings = [ 10 ('origin_call', data.origin_call_train_size, 10), 11 ('origin_stand', data.stands_size, 10) 12 ] 13 14 dim_input = n_begin_end_pts * 2 * 2 + sum(x for (_, _, x) in dim_embeddings) 15 dim_hidden = [200, 100] 16 dim_output = 2 17 18 embed_weights_init = IsotropicGaussian(0.001) 19 mlp_weights_init = IsotropicGaussian(0.01) 20 mlp_biases_init = Constant(0.001) 21 22 learning_rate = 0.0001 23 momentum = 0.99 24 batch_size = 32 25 26 max_splits = 100