rsample2caret {rsample} | R Documentation |
Convert Resampling Objects to Other Formats
Description
These functions can convert resampling objects between rsample and caret.
Usage
rsample2caret(object, data = c("analysis", "assessment"))
caret2rsample(ctrl, data = NULL)
Arguments
object |
An |
data |
The data that was originally used to produce the
|
ctrl |
An object produced by |
Value
rsample2caret
returns a list that mimics the
index
and indexOut
elements of a
trainControl
object. caret2rsample
returns an
rset
object of the appropriate class.
[Package rsample version 1.2.1 Index]