check_panel_data¶
yohou.testing.panel.check_panel_data(forecaster, y_panel, X_panel=None)
¶
Check cross-learning with panel data predicts all groups by default.
Validates that when panel_group=None (default), predictions are generated for all groups in the panel data columns.
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 default prediction doesn't include all groups |