Description Usage Arguments Details Value
Simple time-series cross-validation
1 2 | ts_crossval_simple(y, func, ..., slices, error_func = rmse, break_err = Inf,
verbose = FALSE)
|
y |
The time-series |
func |
Forecasting function. See details. |
... |
Forcasting function |
slices |
Cross-validation slices, created by |
error_func |
Error function for reporting cross-validation error. |
break_err |
If CV error passes this value, cross-validation is prematurely stopped. |
verbose |
If True, verbose debugging messages are printed out. |
func
expects a signature of type function(y, h, ...)
, where y
is the time-series to forecast,
h
is the horizon to forecast, and ...
is any other parameter.
Use break_err
when you have to evaluate many functions quickly.
By setting this value to CV from a known good predictor, bad forecasters can be pruned quickly.
Cross-validation error for the given forecast function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.