Skip to content

TimeMachine: A Time Series is Worth 4 Mambas for Long-term Forecasting

License

Notifications You must be signed in to change notification settings

ZhongHaoAustin/TimeMachine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeMachine

Alt text

Usage

  1. Install requirements. pip install -r requirements.txt

  2. Navigate through our example scripts located at ./scripts/TimeMachine. You'll find the core of TimeMachine in models/TimeMachine.py. For example, to get the multivariate forecasting results for weather dataset, just run the following command, and you can open ./result.txt to see the results once the training is completed. Moreover, the results will also be available at csv_results, which can be utilized to make queries in the dataframe:

sh ./scripts/TimeMachine/weather.sh

Hyper-paramters can be tuned based upon needs (e.g. different look-back windows and prediction lengths). TimeMachine is built on the popular PatchTST framework.

Acknowledgement

We are deeply grateful for the valuable code and efforts contributed by the following GitHub repositories. Their contributions have been immensely beneficial to our work.

Citation

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

@article{timemachine,
  title     = {TimeMachine: A Time Series is Worth 4 Mambas for Long-term Forecasting},
  author    = {Ahamed, Md Atik and Cheng, Qiang},
  journal   = {arXiv preprint arXiv:2403.09898},
  year      = {2024}
}

About

TimeMachine: A Time Series is Worth 4 Mambas for Long-term Forecasting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.5%
  • Shell 21.5%