Description Usage Arguments Details References
View source: R/crossv_vfold_ts.R
Splits data into test/train sets for cross-validating time series data. In each split, the indices are increasing, so only previous data are used to test future data.
1 | cross_vfold_ts(n, v = 5L)
|
n |
A positive, scalar integer representing the number of observations (items to choose from). |
v |
A scalar integer representing the number of folds to generate. |
The data are split into K ≥q 2 folds, where for each i in 2:K, the i-th fold is the test set and folds 1, ..., (i - 1) folds are the training set.
Scikit-learn v. 0.18.1. Cross-validation: evaluating estimator performance. URL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.