因此,我所做的是以以下方式生成自定义重采样:resampling_backtest = rsmp("custom")
test_sets = list(31) # for later use in the instantiated resamplingappend(train_sets, list(c(1:(t
The code taken from mlr3 book (https://mlr3book.mlr-org.com/nested-resampling.html) is as follows:library("mlr3tuning")learner = lrn("classif.rpart")
resampling = rsmp("holdout")trm("evals", n_eval