Skip to content
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

How the training of global models realized? #440

Open
kkckk1110 opened this issue Nov 1, 2024 · 1 comment
Open

How the training of global models realized? #440

kkckk1110 opened this issue Nov 1, 2024 · 1 comment

Comments

@kkckk1110
Copy link

Description

Hello, I am using mlforecast to train a global forecasting model and reaching an exciting performance. However, I have some questions about the training details of global models. Specifically, I am using XGBoost for forecasting. When training a global model, does the trainer automatically input the unique_id as additional features? Or, does it simply aggregate the data from different series and train on the whole dataset without any additional features?
Thanks a lot for your attention.

Link

No response

@jmoralez
Copy link
Member

jmoralez commented Nov 1, 2024

Hey. The id isn't used as a feature unless you explicitly ask for it by setting static_features=[your_id_col]. The features that are used to train are the ones you define in the constructor: lags, lag transforms, date features. The id is just used to differentiate between the series to compute the features and apply local target transformations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants