pytorch-forecasting: tft unable to set target to a list of strings (multiple targets)
- PyTorch-Forecasting version: 0.8.5
- PyTorch version: 1.8.1
- Python version: 3.8.10
- Operating System: linux 3.10.0-1160.25.1.el7.x86_64
according to doc: https://pytorch-forecasting.readthedocs.io/en/latest/api/pytorch_forecasting.data.timeseries.TimeSeriesDataSet.html the target parameter can be set to a list of strings indicating multiple variables for prediction However, during run time, the code spits the following error:
TypeError: new() received an invalid combination of arguments - got (list, int), but expected one of:
* (*, torch.device device)
didn't match because some of the arguments have invalid types: (list, int)
* (torch.Storage storage)
* (Tensor other)
* (tuple of ints size, *, torch.device device)
* (object data, *, torch.device device)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (4 by maintainers)
@owoshch I encountered this problem when I only set
losswith multiple loss but forgot to set theoutput_sizeto a list of output sizes.But even if the
lossandoutput_sizeare set correctly and the learning rate is a small value, I still have the same issue as @QitianMa . Output before the error message:This happens immediately. I tried gradient_clip_val=0.0001, and learning rate 1e-6. This issue persists.