Skip to content

Vapour1005/AEC-GAN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AEC-GAN

This repository contains the code of AEC-GAN: Adversarial Error Correction GANs for Auto-Regressive Long Time-Series Generation.

Getting Started:

  1. Prepare the data:
    • We have provide the data in the folder data, containing the following six datasets:
      • [etth1, etth2, ettm1, ettm2, us_births, ILI]
  2. Install dependencies:
    • This project is implemented with pytorch==1.8.1+cu102
  3. For training
    python train.py -datasets $dataset -base_dir $save_path -p $p -q $q -use_cuda -algos 'AECGAN' -total_steps 10000 -batch_size 200 -noise_type min_adv -use_ec 2 
    • $dataset: We have implemented AEC-GAN on six datasets: [etth1, etth2, ettm1, ettm2, us_births, ILI]
    • $save_path: The path you save the model.
    • $p: The length of the past conditions.
    • $q: The length of the forward generations.
  4. For generation
    python train.py -datasets $dataset -base_dir 'results/p168_q336' -p 168 -q 336 -use_cuda -algos 'AECGAN' -total_steps 10000 -batch_size 200 -noise_type min_adv -use_ec 2 -test 
    • $dataset: We have implemented AEC-GAN on six datasets: [etth1, etth2, ettm1, ettm2, us_births, ILI]
    • $save_path: The path you save the model.
    • $p: The length of the past conditions.
    • $q: The length of the forward generations.
  5. For downstream performance
    • The generated data can be used as the alternative training set used for training forecasting models (e.g., SCINet, Informer and Autoformer).
    • Folder models contains the code to train the downstream forecasting models.
  6. Easy usage
    • For an easy usage, we also provide a bash file run_file.sh, which contains the commands to train the models or generate time-series data.

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.8%
  • Jupyter Notebook 15.9%
  • Shell 1.3%