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

Incorporating Exogenous Variables #266

Closed
drRussClay opened this issue Mar 25, 2024 · 2 comments
Closed

Incorporating Exogenous Variables #266

drRussClay opened this issue Mar 25, 2024 · 2 comments

Comments

@drRussClay
Copy link

Hello - I've been following along with the installation guide for TimeGPT in Python. I want to make sure I understand how to add exogenous variables to the forecast model. It seems that I can only pass an X_df that covers the forecast period, correct?

In my current test problem, I am adding a single exogenous variable that is very highly correlated with the outcome that I am forecasting throughout the dataset. There is one exception, where the relation gets decoupled, and that is during the forecast period. I expected to see the forecast follow the trend of exogenous predictor, but it does not - it remains smooth despite the sudden change in the exogenous variable, which makes me wonder if I am adding it correctly to the forecast.

Can you confirm that X_df should only contain data for the forecast period? I get errors if try to pass an X_df with any other length.

Thank you!

@jmoralez
Copy link
Member

Hey @drRussClay, thanks for using TimeGPT. Yes, X_df should contain the values of the exogenous features during the forecast period. Can you provide a small example with fake data that reproduces what you're seeing?

Copy link
Contributor

This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one.

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

3 participants