Open AkshatGarg-bot opened 2 years ago
Hey mate,
I also encountered this one yesterday as my first time using this pytorch-forcasting framework.
It seems like you need to encode your id columns as what the offical tutorial did here line 37 (although i don't understand why it is necessary to encode the id) https://github.com/jdb78/pytorch-forecasting/blob/master/examples/ar.py
The link is not opening can you share a screenshot or provide a new link.
I am having the same problem. When I try your solution, I get this. @xinrongl
Traceback (most recent call last): File "pytorch_forecast.py", line 79, in <module> categorical_encoders={data["series"]: NaNLabelEncoder(add_nan=True)}, TypeError: unhashable type: 'Series'
PyTorch-Forecasting version : 0.9.2 PyTorch version : 1.11.0 Python version: 3.8.10 Operating System : NAME="Ubuntu" VERSION="20.04.2 LTS
It is a time series dataset with continuous time_id for each investment_id as shown in the image. The first and last time_id for each investment_id can be different. The dataset is sorted on the basis of investment_id , time_id as shown in the image
I am running the tft model for individual investment id as small_df. But I am encountering the above error