check_cv¶
yohou.model_selection.split.check_cv(cv=5, forecasting_horizon=1)
¶
Input checker utility for building a cross-validator.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
cv
|
int, cross-validation generator or an iterable
|
Determines the cross-validation splitting strategy.
Possible inputs for cv are:
- None, to use the default 5-fold time series cross validation,
- integer, to specify the number of folds in a time series |
5
|
forecasting_horizon
|
int >= 1
|
Horizon to forecast recursively. |
1
|
Returns¶
| Name | Type | Description |
|---|---|---|
checked_cv |
a cross-validator instance.
|
The return value is a cross-validator which generates the train/test
splits via the |