Skip to content

Forecasting Horizon when calling the fit method #5955

Answered by fkiraly
edzWH asked this question in Q&A
Discussion options

You must be logged in to vote

If I'm calling the fit method after doing some CV on a pipeline, is the forecasting horizon irrelevant if I'm purely using the object to document the best params/scores and not fit a model?

Yes - in this case the fh in fit is unimportant, it is ignored in the internal benchmarking. What matters is the fh in, e.g., SlidingWindowSplitter, this is not automatically set to coincide with the fh you use later for a forecast.

If you only want to run a benchmarking experiment - and not make an additional forecast using the best parameter, you may want to consider using evaluate (from forecasting.model_evaluation), this is also used inside the grid search estimator.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by edzWH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting module:metrics&benchmarking metrics and benchmarking modules
2 participants