Takes a sample with or without replacement from the population.
Takes repeated samples with or without replacement from the population and feed them to function fun
Usage
resample(object, ...)
# S4 method for Sampler
resample(object)
# S4 method for Resampler
resample(object, .inorder = TRUE, fun, ...)
Arguments
- ...
further arguments to
fun
- .inorder
logical flag indicating whether the
.combine
function requires the task results to be combined in the same order that they were submitted. If the order is not important, then it setting.inorder
toFALSE
can give improved performance. The default value is `TRUE.- fun
A function to be executed on re-sampled data. It should contain an
indices
parameter- do.parallel
logical, whether to try to parallelise the train-and-test procedure
- cores
number of cores to use for parallel execution