gzerveas / mvts_transformer

Multivariate Time Series Transformer, public version
MIT License
727 stars 171 forks source link

very long time series, performance drop #13

Closed aappaappoo closed 2 years ago

aappaappoo commented 2 years ago

implied in the text,who combine the triplet loss with a deep causal CNN with dilation, in order to make the method effective for very long time series. Is there any relevant code to refer to?This method does not seem to work well on a time series dataset with a sequence length of 5000 and a feature number of 2.

gzerveas commented 2 years ago

The quick existing solution when handling very long time series is to use --subsample_factor k to keep every kth sample. However, although definitely helping with compute times, it doesn't always yield good accuracies (although sometimes it might even improve results for medium-length time series). Especially for very low-dimensional time series (dim=2 in your case), this is a known limitation addressed in the paper. A promising solution, as you mentioned, is using CNN layer(s) on top of the raw input sequence. However, this code is not implemented in this repo. You are welcome to implement it and submit a pull request.