# NOT RUN {
# Create a task with 10 observations
task = tsk("iris")
task$filter(1:10)
# Instantiate Resampling
rho = rsmp("holdout", ratio = 0.5)
rho$instantiate(task)
# Individual sets:
rho$train_set(1)
rho$test_set(1)
intersect(rho$train_set(1), rho$test_set(1))
# Internal storage:
rho$instance # simple list
# }
Run the code above in your browser using DataLab