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

Can this model predict the multi-targets? If it can, could u tell me how to fix the code? #103

Closed successdang99 closed 1 year ago

wuhaixu2016 commented 1 year ago

Hi, thanks for your interest.

Can you provide more details about "multi-targets"?

(1) If you mean multivariate forecasting, we have already supported this.

(2) If you refer to multi-task learning (including anomaly detection, forecasting, and classification), I think you can try multiple final MLP projectors. Further, if you are interested in multi-task learning in time series, you may find our latest paper helpful: https://arxiv.org/abs/2210.02186

successdang99 commented 1 year ago

Hi, thanks for your answer. I want to predict the ship's position. So, it needs two targets: X and Y. But in the other datasets, which you used, there is only one target 'OT'. Can you tell me how I fix the code for my problem?

wuhaixu2016 commented 1 year ago

Hi, you can just use multivariate forecasting setting (--features M). In multivariate forecasting, all the columns are the targets.