Open moorehousew opened 2 years ago
The error got resolved when I removed square brackets as:
tft,
train_dataloaders = train_dataloader,
val_dataloaders = val_dataloader
)
Also, you need to include min_prediction_idx = training_cutoff + 1
in validation dataset creation steps.
Expected behavior
I'm trying to do good ol' stock price prediction using TFT. I've followed the stallion example, changing the dataset configuration as required. I'm expecting the call to
trainer.fit
to work as it would normally...Actual behaviour
...but it fails on the first training iteration with the traceback included below. I'm almost certain this is a trivial configuration mistake. Please let me know what I'm forgetting to include.
Code to reproduce the problem
Example dataset: MSFT, GOOG, AMZN, AAPL, META- 512 day ticker history (excl. weekends)
Colab notebook here: https://colab.research.google.com/drive/1lF6DWoje_qD0PZysNu6UHaoqK9nDstBH?usp=sharing
Traceback: