These functions can convert resampling objects between rsample and caret.
rsample2caret(object, data = c("analysis", "assessment"))caret2rsample(ctrl, data = NULL)
rsample2caret() returns a list that mimics the
index and indexOut elements of a
trainControl object. caret2rsample() returns an
rset object of the appropriate class.
An rset object. Currently,
nested_cv() is not supported.
The data that was originally used to produce the
ctrl object.
An object produced by caret::trainControl() that has
had the index and indexOut elements populated by
integers. One method of getting this is to extract the
control objects from an object produced by train.