An implementation of existing DCRNN, STGCN, MW-TGC algorithm utilizing dgl and Pytorch.
It will be upload requirements.txt file later.
Clone repo and install requirements.txt
git clone https://github.com/~~
cd traffic_forecasting
pip install -r requirements.txt
- preprocessing We have datasets of front, doan, dunsan, and wolpyeong.
- ts_202107-09 file to csv file.
python ts_to_csv.py --dir tsFolderDirectory #ts folder directory
- Make the necessary input files in STGCM, and MW-TGC.
python preprocessing.py --loc front # run front
- Make the necessary input files in DCRNN.
python preprocessing.py --loc front # run front
--output_dir dataset/ #Output directory
-
Usage
- DCRNN
python train.py --loc front # run front
- STGCN
python main_tmap.py --loc front # run front
- MW-TGC
python main.py --loc front # run front