check_search_panel_data¶
yohou.testing.search.check_search_panel_data(search_cv, y_train, y_test, X_actual_train=None, X_actual_test=None, groups=None, X_future=None, X_forecast=None)
¶
Check groups parameter propagates correctly.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
search_cv
|
BaseSearchCV
|
Fitted search CV instance with panel data |
required |
y_train
|
DataFrame
|
Training target data with panel groups |
required |
y_test
|
DataFrame
|
Test target data with panel groups |
required |
X_actual_train
|
DataFrame
|
Training features with panel groups |
None
|
X_actual_test
|
DataFrame
|
Test features with panel groups |
None
|
groups
|
list of str
|
Panel group names to test |
None
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If groups doesn't propagate correctly |