Commit 9ad73556 by yan

readme

parent 1e1e07da
# pytorch-DCRNN
The original tensorflow implementation: [liyaguang/DCRNN](https://github.com/liyaguang/DCRNN),
This repo is still under development.
PyTorch implementation of Diffusion Convolutional Recurrent Neural Network in the following paper: \
Yaguang Li, Rose Yu, Cyrus Shahabi, Yan Liu, [Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting](https://arxiv.org/abs/1707.01926), ICLR 2018.
## Requirements ## Requirements
......
{ {
"name": "METR-LA_DCRNN", "name": "BAY_DCRNN",
"n_gpu": 1, "n_gpu": 1,
"id": 5,
"arch": { "arch": {
"type": "DCRNNModel", "type": "DCRNNModel",
"args": { "args": {
"batch_size": 64, "batch_size": 64,
"enc_input_dim": 2, "enc_input_dim": 1,
"dec_input_dim": 1, "dec_input_dim": 1,
"max_diffusion_step": 2, "max_diffusion_step": 2,
"num_nodes": 207, "num_nodes": 32,
"num_rnn_layers": 2, "num_rnn_layers": 2,
"rnn_units": 64, "rnn_units": 64,
"seq_len": 12, "seq_len": 12,
...@@ -21,7 +23,7 @@ ...@@ -21,7 +23,7 @@
"type": "Data", "type": "Data",
"args":{ "args":{
"train_batch_size": 64, "train_batch_size": 64,
"data_dir": "data/METR-LA/", "data_dir": "data/pems-bay-datasets-10/",
"shuffle": true, "shuffle": true,
"validation_split": 0.1, "validation_split": 0.1,
"val_batch_size": 64, "val_batch_size": 64,
...@@ -32,7 +34,7 @@ ...@@ -32,7 +34,7 @@
"optimizer": { "optimizer": {
"type": "Adam", "type": "Adam",
"args":{ "args":{
"lr": 0.01, "lr": 0.005,
"weight_decay": 0, "weight_decay": 0,
"eps": 1.0e-3, "eps": 1.0e-3,
"amsgrad": true "amsgrad": true
...@@ -45,17 +47,17 @@ ...@@ -45,17 +47,17 @@
} }
}, },
"metrics": [ "metrics": [
"masked_mae_np", "masked_mape_np", "masked_rmse_np" "masked_mae_np", "masked_mape_np", "masked_rmse_np", "masked_pcc"
], ],
"lr_scheduler": { "lr_scheduler": {
"type": "MultiStepLR", "type": "MultiStepLR",
"args": { "args": {
"milestones": [20, 30, 40, 50], "milestones": [15, 25, 35],
"gamma": 0.1 "gamma": 0.1
} }
}, },
"trainer": { "trainer": {
"epochs": 1, "epochs": 50,
"cl_decay_steps": 2000, "cl_decay_steps": 2000,
"save_dir": "saved/", "save_dir": "saved/",
"save_period": 1, "save_period": 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment