These functions can convert resampling objects between rsample and caret.
Usage
rsample2caret(object, data = c("analysis", "assessment"))
caret2rsample(ctrl, data = NULL)Arguments
- object
An
rsetobject. Currently,nested_cv()is not supported.- data
The data that was originally used to produce the
ctrlobject.- ctrl
An object produced by
caret::trainControl()that has had theindexandindexOutelements populated by integers. One method of getting this is to extract thecontrolobjects from an object produced bytrain.
