You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use exogenous features for statsForecast.fit method. For some reason, I am unable to do so as it says:
ValueError: xreg is rank deficient
I amusing one-hot encoding for the month and due to that some columns have 0 throughout in the example data below, but with full data, I do not have any zero cols, and there are no constant columns in the data as well. Also, there are no features that have an absolute correlation of more than 0.7.
Updated: If I remove both the day_of_week and month_indicator one-hot encodings, it works. But I am not sure what could be a reason behind this. Also, is there any other way to include month as it is an important feature.
Issue Severity
High: It blocks me from completing my task.
The text was updated successfully, but these errors were encountered:
Thanks! I believe this is due to the colinearity that the dummies introduce, can you try dropping one of the levels? i.e. use 6 dummies for day of week, 11 for month and 3 for quarters. You can read more about the problem here.
What happened + What you expected to happen
Hi,
I am trying to use exogenous features for statsForecast.fit method. For some reason, I am unable to do so as it says:
ValueError: xreg is rank deficient
I amusing one-hot encoding for the month and due to that some columns have 0 throughout in the example data below, but with full data, I do not have any zero cols, and there are no constant columns in the data as well. Also, there are no features that have an absolute correlation of more than 0.7.
Versions / Dependencies
python: 311
statsForecast: 1.7.4
Reproduction script
Updated: If I remove both the day_of_week and month_indicator one-hot encodings, it works. But I am not sure what could be a reason behind this. Also, is there any other way to include month as it is an important feature.
Issue Severity
High: It blocks me from completing my task.
The text was updated successfully, but these errors were encountered: