Skip to content

TROUBADOUR000/TimeFilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeFilter: Patch-Specific Spatial-Temporal Graph Filtration for Time Series Forecasting

📰 News

🚩 Updates (2025-1-22) Initial upload to arXiv PDF.

🌟 Overview

TimeFilter is a cutting-edge solution for time series forecasting, incorporating three main components: the Spatial-Temporal Construction Module, the Patch-Specific Filtration Module, and the Adaptive Graph Learning Module.

🛠 Prerequisites

Ensure you are using Python 3.10.16 and install the necessary dependencies by running:

pip install -r requirements.txt

📊 Prepare Datastes

Begin by downloading the required datasets. All datasets are conveniently available at iTransformer. Create a separate folder named ./data and neatly organize all the csv files as shown below:

data
└── electricity.csv
└── ETTh1.csv
└── ETTh2.csv
└── ETTm1.csv
└── ETTm2.csv
└── traffic.csv
└── weather.csv
└── solar_AL.txt
└── PEMS03.npz
└── PEMS04.npz
└── PEMS07.npz
└── PEMS08.npz

💻 Training

All scripts are located in ./scripts. For instance, to train a model using the ETTh1 dataset with an input length of 96, simply run:

bash ./scripts/ETTh1.sh

After training:

  • Your trained model will be safely stored in ./checkpoints.
  • Numerical results in .npy format can be found in ./results.
  • A comprehensive summary of quantitative metrics is accessible in ./result_long_term_forecast.txt.

📚 Citation

If you find this repo useful, please consider citing our paper as follows:

@article{hu2025timefilter,
  title={TimeFilter: Patch-Specific Spatial-Temporal Graph Filtration for Time Series Forecasting},
  author={Hu, Yifan and Zhang, Guibin and Liu, Peiyuan and Lan, Disen and Li, Naiqi and Cheng, Dawei and Dai, Tao and Xia, Shu-Tao and Pan, Shirui},
  journal={arXiv preprint arXiv:2501.13041},
  year={2025}
}

🙏 Acknowledgement

Special thanks to the following repositories for their invaluable code and datasets:

📩 Contact

If you have any questions, please contact huyf0122@gmail.com or submit an issue.

About

PyTorch Implementation of TimeFilter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published