1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/caret.R
\name{rsample2caret}
\alias{rsample2caret}
\alias{caret2rsample}
\title{Convert Resampling Objects to Other Formats}
\usage{
rsample2caret(object, data = c("analysis", "assessment"))
caret2rsample(ctrl, data = NULL)
}
\arguments{
\item{object}{An \code{rset} object. Currently,
\code{nested_cv} is not supported.}
\item{data}{The data that was originally used to produce the
\code{ctrl} object.}
\item{ctrl}{An object produced by \code{trainControl} that has
had the \code{index} and \code{indexOut} elements populated by
integers. One method of getting this is to extract the
\code{control} objects from an object produced by \code{train}.}
}
\value{
\code{rsample2caret} returns a list that mimics the
\code{index} and \code{indexOut} elements of a
\code{trainControl} object. \code{caret2rsample} returns an
\code{rset} object of the appropriate class.
}
\description{
These functions can convert resampling objects between
\pkg{rsample} and \pkg{caret}.
}
|