thuml / Autoformer

About Code release for "Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting" (NeurIPS 2021), https://arxiv.org/abs/2106.13008
MIT License
2k stars 429 forks source link

forecasting future using autoformer #120

Closed ayizii closed 1 year ago

ayizii commented 1 year ago

Hello, Thank you for your amazing work. I was wondering, is it possible to use Autoformer to forecast the future unknown values based on previous predictions and trends. Something similar to this:

image

How can I achieve this ?

wuhaixu2016 commented 1 year ago

sure, you may find the predict function helpful (line 272 of https://github.com/thuml/Autoformer/blob/main/exp/exp_main.py)