-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core] Categorical Features #916
Comments
Do we have a workaround for this in the meantime? Thanks! |
I think the handling of categorical exogenous variables is one of the few areas where neuralforecast is lacking. Other libraries such as Darts https://github.com/unit8co/darts allow you to specify for different models (e.g. TFT) what the static categorical variables etc. are so that they can be handled appropriately, however neuralforecast does not provide any ad hoc handling for categorical variables. |
@elephaint What do you think about introducing support for categorical variables (with categorical embedding) in neuralforecast for models that should support them, such as TFT and perhaps TiDE (others?). I ask because I see that you are unifying the API of the models in #1023 |
@candalfigomoro Makes sense, maybe a possibility for an |
Also, I would like to add that the original Google implementation of TiDE divides all features into categorical and numerical, which is used to pass features via embeddings: Additionally, separating features into two groups can help implement numerical embeddings that could improve the forecasts' quality (https://arxiv.org/abs/2203.05556). AFAIK GCP implementation of TiDE utilizes numerical embeddings, which is different from the paper's original implementation. |
What happened + What you expected to happen
According to the Exogenous Variables Tutorial:
That means that all non-static variables are scaled and treated as real numbers. Neural-Forecast should give the option of specifying categorical features that should be embedded and non-categorical features that should be scaled. Using the example from the tutorial
gen_forecast
should be scaled, whileweek_day
should be treated as a categorical.Versions / Dependencies
1.6.4
Reproduction script
https://nixtlaverse.nixtla.io/neuralforecast/examples/exogenous_variables.html
Issue Severity
Medium: It is a significant difficulty but I can work around it.
The text was updated successfully, but these errors were encountered: