yuqinie98 / PatchTST

An offical implementation of PatchTST: "A Time Series is Worth 64 Words: Long-term Forecasting with Transformers." (ICLR 2023) https://arxiv.org/abs/2211.14730
Apache License 2.0
1.37k stars 248 forks source link

How to load models to predict data #17

Closed shushan2017 closed 1 year ago

shushan2017 commented 1 year ago

This is a potential project. How can I load the model and predict the new data? Can you give me a code example? Thank you

yuqinie98 commented 1 year ago

Hi, take supervised learning as an example. For supervised learning, create a seperate folder ./dataset and put all the csv files in the directory. Then create new script by mimicking PatchTST/PatchTST_supervised/scripts/PatchTST/electricity.sh, and then you would be able to run it.

shushan2017 commented 1 year ago

thank you!!!