powered by
This functions "swaps" the analysis and assessment sets of either a single rsplit or all rsplits in the splits column of an rset object.
rsplit
splits
rset
reverse_splits(x, ...)# S3 method for default reverse_splits(x, ...)# S3 method for permutations reverse_splits(x, ...)# S3 method for perm_split reverse_splits(x, ...)# S3 method for rsplit reverse_splits(x, ...)# S3 method for rset reverse_splits(x, ...)
# S3 method for default reverse_splits(x, ...)
# S3 method for permutations reverse_splits(x, ...)
# S3 method for perm_split reverse_splits(x, ...)
# S3 method for rsplit reverse_splits(x, ...)
# S3 method for rset reverse_splits(x, ...)
An object of the same class as x
x
An rset or rsplit object.
Not currently used.
set.seed(123) starting_splits <- vfold_cv(mtcars, v = 3) reverse_splits(starting_splits) reverse_splits(starting_splits$splits[[1]])
Run the code above in your browser using DataLab