Blauzo
05/06/2024, 11:23 PMMariana Menchero
05/06/2024, 11:27 PMn_windows
is somehow the equivalent to the number of folds. The difference of course is that the windows need to be one after another due to the sequential nature of the data. We have a visualization in the neuralforecast tutorial for cross-validation that I think explains it better. See hereMariana Menchero
05/06/2024, 11:27 PMBlauzo
05/06/2024, 11:35 PMMariana Menchero
05/06/2024, 11:50 PMn_windows
and step_size
interact. Suppose you have hourly data and you set n_windows=3
and step_size=24
. Then you will have 3 test sets:
1. The first test set uses all the data except the last 72 hours.
2. The second test set uses all the data except the last 48 hours.
3. The third test set uses all the data except the last 24 hours.Mariana Menchero
05/06/2024, 11:50 PMn_windows
and step_size
accordingly. In the previous example, I used 24 hours = 1 day. However, you also need to consider the context of your data since sometimes you may want to test a specific portion of it. For example, if you are working with retail data, you might want one of the windows to include a promotional period.