check_observe_predict_interval_with_step_columns¶
yohou.testing.forecaster.check_observe_predict_interval_with_step_columns(forecaster, y_train, X_actual_train, y_test, X_actual_test=None, X_future=None, X_forecast=None, forecasting_horizon=3, coverage_rates=None)
¶
Check observe_predict_interval works with step columns (lightweight).
Runs observe_predict_interval with stride=len(y_test)//2 (2 iterations) and validates output structure and per-vintage time sorting.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
forecaster
|
BaseForecaster
|
Unfitted interval forecaster instance. |
required |
y_train
|
DataFrame
|
Training target data. |
required |
X_actual_train
|
DataFrame or None
|
Training features. |
required |
y_test
|
DataFrame
|
Test target data (at least 10 rows). |
required |
X_actual_test
|
DataFrame or None
|
Test features. |
None
|
X_future
|
DataFrame or None
|
None
|
|
X_forecast
|
DataFrame or None
|
External forecasts. |
None
|
forecasting_horizon
|
int
|
Number of steps ahead. |
3
|
coverage_rates
|
list of float or None
|
Coverage rates for prediction intervals. Defaults to [0.9]. |
None
|
Source Code¶
Show/Hide source
1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 | |