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