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