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.36k stars 247 forks source link

Multivariate predict univariate #107

Open Alexey322 opened 3 months ago

Alexey322 commented 3 months ago

Hello. As I understand from your paper and discussions in the repository, the model is trained to predict each time series independently of other time series.

So, let's say if we have three parameters: age, sex, salary. Then, training your model is equivalent to training three neural networks that are trained to predict univariate age based only on previous age values, univariate gender based only on previous gender values, and univariate salary based only on previous salary values.

The "--features" parameter in PatchTST_supervised/run_longExp.py says that you can select MS - multivariate predict univariate. By using the MS parameter instead of calculating the error of all time series, it only calculates the error for the target time series.

My question is why is it called "multivariate predict univariate" instead of "univariate predict univariate" and what is the point of using other input time series if they have no effect on the target time series?

I will be grateful for a detailed answer. @yuqinie98 @namctin

chendingyan commented 4 weeks ago

Still confused with this