check_point_prediction_structure¶
yohou.testing.check_point_prediction_structure(forecaster, y_test)
¶
Check point predictions have correct column structure.
Predictions must carry both vintage_time (when the forecast was made)
and time (the timestamp being forecast), no interval columns, and at
least one target column.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
forecaster
|
BasePointForecaster
|
Fitted point forecaster instance |
required |
y_test
|
DataFrame
|
Test target data |
required |
Raises ¶
| Type | Description |
|---|---|
AssertionError
|
If prediction structure is incorrect |