kdgutier / esrnn_torch

MIT License
156 stars 44 forks source link

Data Formatting for ES-RNN #36

Open puzzlecollector opened 2 years ago

puzzlecollector commented 2 years ago

@kdgutier Suppose I want to train the ES-RNN on stock dataset. But because the stock market closes, I do not have data for the weekends. Would it be okay even if I have gaps in the dates for weekends and possibly some public holidays?

kdgutier commented 2 years ago

Hi Luke,

The ES-RNN input data needs to be clean and without missing values.

Remember that the exponential smoothing tries to learn repeated seasonal patterns, if you drift from the seasonalities the model may struggle. Also these seasonalities are treated by the model as "constant".

Because of the "constant" seasonalities and the computational cost of RNNs on very long series I recommend you to train on medium sized history windows.