Error at forecast from load model ForecastX and ForecastingGridSearchCV. #5328
Unanswered
akmalmvic0312
asked this question in
Q&A
Replies: 2 comments 1 reply
-
@yarnabrina, I vaguely remember you had the same or a similar issue a while ago - did we resolve that or did we end up reporting a bug? |
Beta Was this translation helpful? Give feedback.
1 reply
-
perhaps, do you have some code on dummy data to replicate the bug? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to ask and discuss about my forecasting pipe using ForecastX. In ForecastX documents, i should to give fh at fitting parameter (gscv.fit(train, X=X_train, fh=fh). Then, i want to register the model to mlflow and load back to other python file that run the forecast one step a head from last data testing or data validation. But there is error in the (.predict(fh) :
Exception has occurred: ValueError
A different forecasting horizon fh has been provided from the one seen in fit. If you want to change the forecasting horizon, please re-fit the forecaster. This is because fitting of the ForecastingGridSearchCV depends on fh.
How to handle this error?
Beta Was this translation helpful? Give feedback.
All reactions