moraieu / query-selector

LONG-TERM SERIES FORECASTING WITH QUERYSELECTOR – EFFICIENT MODEL OF SPARSEATTENTION
Apache License 2.0
74 stars 19 forks source link

Test train split #9

Open Niharikajo opened 1 year ago

Niharikajo commented 1 year ago

Hello,

I had a doubt in the data processing step

  1. In ETTm2 dataset in data_loader to split the dataset we use the following code to calculate border and then calculate the number of train and test points. Can you explain this line of code? How is this calculated ? border1s = [0, 12*30*24*4 - self.seq_len, 12*30*24*4+4*30*24*4 - self.seq_len] border2s = [12*30*24*4, 12*30*24*4+4*30*24*4, 12*30*24*4+8*30*24*4]

  2. seq_len is calculated as 24 4 4 how is this calculated? What does it signify?

Please let me know

Thank you Niharika