check_rewind_updates_memory¶
yohou.testing.transformer.check_rewind_updates_memory(transformer, X, y=None)
¶
Check rewind() updates _X_observed to last observation_horizon rows.
The rewind() method should update the transformer's memory to contain only the last observation_horizon rows of the provided data.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
transformer
|
BaseTransformer
|
Unfitted transformer |
required |
X
|
DataFrame
|
Training data (must be longer than observation_horizon) |
required |
y
|
DataFrame
|
Target data |
None
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If _X_observed is not properly updated |
ValueError
|
If X is too short for the transformer's observation_horizon |