Replies: 1 comment
-
That's an interesting question. I think the reason is simply, the the relevant lines are 160-164: # Clone forecaster.
forecaster = self.forecaster.clone()
# Set parameters.
forecaster.set_params(**params) The We could, alternatively, first use I'm interested to understand why one would put |
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
-
Originally from stackoverflow:
https://stackoverflow.com/questions/75903578/when-performing-model-selection-with-forecastinggridsearchcv-in-sktime-why-do-y
and requested by Dan0815 to answer.
This is the original question:
In the Pydata 2022 Global sktime tutorial on AutoML there is an example of using
sktime.forecasting.model_selection.ForecastingGridSearchCV
to select a forecaster:My question is why do we have
("forecaster", NaiveForecaster())
in the steps offcster
If you change
NaiveForecaster()
toNone
, you get anAttributeError: 'NoneType' object has no attribute 'clone'
so it's clearly required.However, in
gcsv
,forecaster
is one of the hyperparameters to tune. So presumably anything specified forforecaster
in fcster prior to tuning will be swapped out during tuning?Beta Was this translation helpful? Give feedback.
All reactions