check_search_error_score_handling¶
yohou.testing.search.check_search_error_score_handling(search_cv, y, X_actual=None, forecasting_horizon=3, X_future=None, X_forecast=None)
¶
Check error_score parameter handles failing fits correctly.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
search_cv
|
BaseSearchCV
|
Unfitted search CV instance with error_score=np.nan |
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 error scores are not handled correctly |