salesforce / CoST

PyTorch code for CoST: Contrastive Learning of Disentangled Seasonal-Trend Representations for Time Series Forecasting (ICLR 2022)
BSD 3-Clause "New" or "Revised" License
214 stars 43 forks source link

TypeError: Rearrange can't be applied to an empty list #10

Closed shlee-home closed 2 years ago

shlee-home commented 2 years ago

Hello, I'm interested in your research.

So, I tried to run your code as you mentioned home: python train.py ETTh1 output --archive forecast_csv --batch-size 256 --repr-dims 320 --gpu 0 --epochs 200 But, I got following error: TypeError: Rearrange can't be applied to an empty list

How can I solve this problem? Thank you.

gorold commented 2 years ago

Hi, you could try running one of the provided scripts ./scripts/ETT_CoST.sh (might need to edit permissions first by chmod u+x scripts/). If that still does not work, I would need to see the whole stack trace to know what the problem is.