Open
Description
library(mlr3learners)
task = tsk("pima")
learner = lrn("classif.ranger", num.trees = 5000)
resampling = rsmp("cv", folds = 10)
system.time(resample(task, learner, resampling))
# user system elapsed
# 25.037 1.413 24.330
system.time(resample(task, learner, resampling, store_models = TRUE))
# user system elapsed
# 27.560 1.701 27.138
Saving the models take 3 seconds longer. While tuning with store_models
it took almost 8 seconds longer. The ranger models get quite large ~60MB. The 3 seconds get lost when creating this data.table
:
Lines 121 to 131 in 2c8734a
Profiling of this part