check_panel_single_group¶
yohou.testing.panel.check_panel_single_group(forecaster, y_panel, X_panel=None)
¶
Check cross-learning filters to specified panel group.
Validates that when panel_group is specified, predictions are generated only for that panel group (all columns with that prefix).
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
forecaster
|
BaseForecaster
|
Fitted forecaster with panel data |
required |
y_panel
|
DataFrame
|
Panel data with panel columns for testing |
required |
X_panel
|
DataFrame
|
Panel features |
None
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If filtered prediction doesn't match specified group |