-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_GRU.json
57 lines (57 loc) · 1.23 KB
/
config_GRU.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"name": "METR-LA_GRU",
"device": "cuda:0",
"dataset": {
"name": "METR-LA",
"graph_file": "data/adj_mx.pkl",
"dataset_dir": "data/METR-LA"
},
"arch": {
"type": "GRUSeq2Seq",
"args": {
"batch_size": 64,
"hidden_size": 64,
"num_nodes": 207,
"dec_input_dim": 1,
"enc_input_dim": 2,
"output_dim": 1
}
},
"optimizer": {
"type": "Adam",
"args":{
"lr": 0.01,
"weight_decay": 0,
"eps": 1.0e-4,
"amsgrad": true
}
},
"loss": {
"type": "masked_mae_loss",
"args":{
"null_val": 0.0
}
},
"metrics": [
"masked_mae_np", "masked_mape_np", "masked_rmse_np"
],
"lr_scheduler": {
"type": "MultiStepLR",
"args": {
"milestones": [5, 10, 20, 40, 70],
"gamma": 0.5
}
},
"trainer": {
"epochs": 100,
"cl_decay_steps": 2000,
"save_dir": "saved/",
"save_period": 1,
"verbosity": 2,
"max_grad_norm": 5,
"monitor": "min val_loss",
"early_stop": 30,
"log_steps": 80,
"tensorboard": true
}
}