Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The official source code of "MagiNet: Mask-Aware Graph Imputation Network for Incomplete Traffic Data"

Notifications You must be signed in to change notification settings

JeremyChou28/MagiNet

Repository files navigation

MagiNet

It's a pytorch implementation of paper "MagiNet: Mask-Aware Graph Imputation Networkfor Missing Spatio-temporal Data" accepted in TKDD.

Requirements

pip install -r requirements.txt

Datasets

  1. Download the raw datasets and push them into directory 'datasets/' (download dataset)

    • PEMS-BAY
    • METR-LA
    • Seattle
    • Chengdu
    • Shenzhen
  2. Preprocess the dataset:

    python prepare_split_data.py --dataset='METR-LA'
    
    python prepare_miss_data.py --dataset='METR-LA' --miss_mechanism='MCAR' --miss_ratio=0.5 --seqlen=12

How to run

python main.py --config_path='configs/METR-LA.yaml' --seed=0

About

The official source code of "MagiNet: Mask-Aware Graph Imputation Network for Incomplete Traffic Data"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published