-
Notifications
You must be signed in to change notification settings - Fork 204
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
feat: add hist_exog_list argument to cross_validation #534
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Experiment ResultsExperiment 1: air-passengersDescription:
Results:
Plot:Experiment 2: air-passengersDescription:
Results:
Plot:Experiment 3: electricity-multiple-seriesDescription:
Results:
Plot:Experiment 4: electricity-multiple-seriesDescription:
Results:
Plot:Experiment 5: electricity-multiple-seriesDescription:
Results:
Plot: |
30fdf26
to
19c80f5
Compare
"for hist_exog_list in [None, [], [x_cols[2], x_cols[1]], x_cols]:\n", | ||
" cv_res = nixtla_client.cross_validation(\n", | ||
" series_with_features,\n", | ||
" n_windows=1,\n", | ||
" h=h,\n", | ||
" freq=freq,\n", | ||
" hist_exog_list=hist_exog_list,\n", | ||
" )\n", | ||
" fcst_res = nixtla_client.forecast(\n", | ||
" train,\n", | ||
" h=h,\n", | ||
" freq=freq,\n", | ||
" hist_exog_list=hist_exog_list,\n", | ||
" X_df=valid,\n", | ||
" )\n", | ||
" np.testing.assert_allclose(\n", | ||
" cv_res['TimeGPT'], fcst_res['TimeGPT'], atol=1e-4, rtol=1e-3\n", | ||
" )" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add a test to verify that different historical exogenous variables result in different forecasts? wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in 91b27ec
Fixes #522