Insample Resampling
Uses all observations as training and as test set.
This Resampling can be instantiated via the dictionary mlr_resamplings or with the associated sugar function rsmp()
:
mlr_resamplings$get("insample") rsmp("insample")
mlr3::Resampling
-> ResamplingInsample
iters
(integer(1)
)
Returns the number of resampling iterations, depending on the values stored in the param_set
.
new()
Creates a new instance of this R6 class.
ResamplingInsample$new()
clone()
The objects of this class are cloneable with this method.
ResamplingInsample$clone(deep = FALSE)
deep
Whether to make a deep clone.
as.data.table(mlr_resamplings)
for a complete table of all (also dynamically created) Resampling implementations.
# Create a task with 10 observations task = tsk("penguins") task$filter(1:10) # Instantiate Resampling rins = rsmp("insample") rins$instantiate(task) rins$train_set(1) rins$test_set(1) # Internal storage: rins$instance # just row ids
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.