check_search_refit_false_no_forecaster¶
yohou.testing.search.check_search_refit_false_no_forecaster(search_cv, y, X_actual=None, forecasting_horizon=3, X_future=None, X_forecast=None)
¶
Check refit=False doesn't create best_forecaster_.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
search_cv
|
BaseSearchCV
|
Unfitted search CV instance with refit=False |
required |
y
|
DataFrame
|
Training target data |
required |
X_actual
|
DataFrame
|
Training features |
None
|
forecasting_horizon
|
int
|
Number of steps ahead to forecast |
3
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If best_forecaster_ is created when refit=False |