validate_splitter_data¶
yohou.utils.validate_data.validate_splitter_data(splitter, y, X_actual)
¶
Validate and prepare input data for time series splitters.
Checks that y and X_actual have valid "time" columns, consistent
panel structure, and matching panel groups. When y is provided the
time interval is inferred and stored on the splitter as interval_.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
splitter
|
BaseSplitter
|
The splitter instance. |
required |
y
|
DataFrame or None
|
Target time series. When |
required |
X_actual
|
DataFrame or None
|
Exogenous features. When |
required |
Returns¶
| Type | Description |
|---|---|
tuple of (pl.DataFrame or None, pl.DataFrame or None)
|
Validated |
Raises¶
| Type | Description |
|---|---|
ValueError
|
If time columns are missing, panel groups are inconsistent, or input validation fails. |
See Also¶
BaseSplitter: Base class for time series CV splitters.check_inputs: Low-level input validation helper.