Code Monkey home page Code Monkey logo

wftnet's Introduction

WFTNet: Exploiting Global and Local Periodicity in Long-term Time Series Forecasting

This is an official implementation of WFTNet: Exploiting Global and Local Periodicity in Long-term Time Series Forecasting.

Prerequisites

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

pip install -r requirements.txt

1. Data Preparation

Download data from AutoFormer. Put all data into a seperate folder ./dataset and make sure it has the following structure:

dataset
├── electricity
│   └── electricity.csv
├── ETT-small
│   ├── ETTh1.csv
│   ├── ETTh2.csv
│   ├── ETTm1.csv
│   └── ETTm2.csv
├── traffic
│   └── traffic.csv
└── weather
    └── weather.csv

2. Training

The training scripts for all datasets are located in the ./scripts directory.

To train a model using the ETTh1 dataset:

  1. Navigate to the repository's root directory.
  2. Execute the following command:
    sh ./scripts/ETTh1.sh

Upon completion of the training:

  • The trained model will be saved in the ./checkpoints directory.
  • Visualization outputs can be found in ./test_results.
  • Numerical results in .npy format are located in ./results.
  • A summary of the quantitative metrics is available in ./results.txt.

Citation

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

@article{liu2023wftnet,
  title={WFTNet: Exploiting Global and Local Periodicity in Long-term Time Series Forecasting},
  author={Liu, Peiyuan and Wu, Beiliang and Li, Naiqi and Dai, Tao and Lei, Fengmao and Bao, Jigang and Jiang, Yong and Xia, Shu-Tao},
  journal={arXiv preprint arXiv:2309.11319},
  year={2023}
}

Contact

If you have any questions, please contact [email protected] or submit an issue.

Acknowledgement

We appreciate the following repo for their code and dataset:

wftnet's People

Contributors

hank0626 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.