Learn R Programming

mlr (version 2.3)

makeResampleDesc: Create a description object for a resampling strategy.

Description

A description of a resampling algorithm contains all necessary information to create a ResampleInstance, when given the size of the data set.

Usage

makeResampleDesc(method, predict = "test", ..., stratify = FALSE,
  stratify.cols = NULL)

Arguments

Value

[ResampleDesc].

Details

Some notes on some special strategies: [object Object],[object Object],[object Object],[object Object]

Object slots: [object Object],[object Object],[object Object],[object Object],[object Object]

See Also

Other resample: ResampleInstance, makeResampleInstance; ResamplePrediction; ResampleResult; bootstrapB632, bootstrapB632plus, bootstrapOOB, crossval, holdout, repcv, resample, subsample

Examples

Run this code
# Bootstraping
makeResampleDesc("Bootstrap", iters = 10)
makeResampleDesc("Bootstrap", iters = 10, predict = "both")

# Subsampling
makeResampleDesc("Subsample", iters = 10, split = 3/4)
makeResampleDesc("Subsample", iters = 10)

# Holdout a.k.a. test sample estimation
makeResampleDesc("Holdout")

Run the code above in your browser using DataLab