check_search_fit_sets_attributes¶
yohou.testing.search.check_search_fit_sets_attributes(search_cv, y, X_actual=None, forecasting_horizon=3, X_future=None, X_forecast=None)
¶
Check fit() sets required search CV attributes.
Validates that fit() creates all required attributes including cv_results_, best_forecaster_, best_params_, best_score_, best_index_, scorer_, n_splits_, and multimetric_.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
search_cv
|
BaseSearchCV
|
Unfitted search CV instance |
required |
y
|
DataFrame
|
Training target data with "time" column |
required |
X_actual
|
DataFrame
|
Training features with "time" column |
None
|
forecasting_horizon
|
int
|
Number of steps ahead to forecast |
3
|
Raises¶
| Type | Description |
|---|---|
AssertionError
|
If required attributes are not set after fit() |