# NOT RUN {
if (mlr3misc::require_namespaces("sperrorest", quietly = TRUE)) {
library(mlr3)
task = tsk("ecuador")
# Instantiate Resampling
rcv = rsmp("spcv_tiles", nsplit = c(4L, 3L), reassign = FALSE)
rcv$instantiate(task)
# Individual sets:
rcv$train_set(1)
rcv$test_set(1)
# check that no obs are in both sets
intersect(rcv$train_set(1), rcv$test_set(1)) # good!
# Internal storage:
rcv$instance # table
}
# }
Run the code above in your browser using DataLab