check_memory_bounded¶
yohou.testing.transformer.check_memory_bounded(transformer, X_train, X_test, y=None, n_updates=5)
¶
Check memory doesn't grow unbounded with sequential updates.
Important for production time series applications with continuous data streams. Memory should stabilize at observation_horizon size.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
transformer
|
BaseTransformer
|
Unfitted transformer |
required |
X_train
|
DataFrame
|
Training data (used for fit) |
required |
X_test
|
DataFrame
|
Test data (used for updates - non-overlapping with training) |
required |
y
|
DataFrame
|
Target data |
None
|
n_updates
|
int
|
Number of update iterations to test |
5
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If memory grows beyond expected bounds |