AttributeError: 'Index' object has no attribute 'dt' when passing date features into AutoMLForecast. #478
-
Hey all. I having been trying with Nixtla's libs for a few days and I enjoying it a lot! I am trying to perform a hyperparameter tuning with some Boosting models with the final objective of doing hierarquical focasting. I am facing an issue when trying to add my features into the AutoMLForecast. Right now I didn't want to perform tuning on the features, just use a small set that I choose, but I was not able to find how to add the features "statically", so I added them into the features tuning like this:
But I am receiving the following error about the date features: 364 feat_vals = getattr(dates, feature) AttributeError: 'Index' object has no attribute 'dt'. I tested with multiple date features and the error continues. How can I solve that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey. Thanks for using mlforecast. The problem is that your time column has integers, so it doesn't have a |
Beta Was this translation helpful? Give feedback.
Hey. Thanks for using mlforecast. The problem is that your time column has integers, so it doesn't have a
dayofyear
attribute, that only works if your time column is made of timestamps.