check_search_predict_delegates¶
yohou.testing.check_search_predict_delegates(search_cv, y_test, X_future=None, X_forecast=None)
¶
Check predict() delegates to best_forecaster_.predict() correctly.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
search_cv
|
BaseSearchCV
|
Fitted search CV instance |
required |
y_test
|
DataFrame
|
Test target data |
required |
X_future
|
DataFrame
|
Known-future features forwarded to predict() |
None
|
X_forecast
|
DataFrame
|
External forecast features forwarded to predict() |
None
|
Raises ¶
| Type | Description |
|---|---|
AssertionError
|
If predict() doesn't delegate correctly |