check_transform_output_structure¶
yohou.testing.transformer.check_transform_output_structure(transformer, X, y=None)
¶
Check transform() output has "time" column and valid structure.
Transform output must be a polars DataFrame with a "time" column and valid data types.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
transformer
|
BaseTransformer
|
Unfitted transformer |
required |
X
|
DataFrame
|
Training data |
required |
y
|
DataFrame
|
Target data |
None
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If output structure is invalid |