getMlrResample | R Documentation |
Determines test/train split and applies
makeFixedHoldoutInstance
getMlrResample(task, dataset, data.seed = 1, prop = NULL)
task |
mlr task |
dataset |
e.g., census data set |
data.seed |
seed |
prop |
proportion, e.g., 2/3 take 2/3 of the data for training and 1/3 for test |
list: an mlr resample generated
with makeFixedHoldoutInstance
getMlrTask
## Example downloads OpenML data, might take some time: dataset <- getDataCensus( task.type="classif", nobs = 1e3, nfactors = "high", nnumericals = "high", cardinality = "high", data.seed=1, cachedir= "oml.cache", target = "age") taskdata <- getMlrTask(dataset, task.type = "classif", data.seed = 1) rsmpl <- getMlrResample(task=taskdata, dataset = dataset, data.seed = 1, prop = 2/3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.