check_randomized_search_reproducibility¶
yohou.testing.search.check_randomized_search_reproducibility(search_cv, y, X_actual=None, forecasting_horizon=3, X_future=None, X_forecast=None)
¶
Check random_state produces same parameter samples.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
search_cv
|
RandomizedSearchCV
|
Unfitted RandomizedSearchCV instance with random_state set |
required |
y
|
DataFrame
|
Training target data |
required |
X_actual
|
DataFrame
|
Training features |
None
|
forecasting_horizon
|
int
|
Number of steps ahead to forecast |
3
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If random_state doesn't produce reproducible results |