mlr3tuning.backup {mlr3tuning}R Documentation

Backup Benchmark Result Callback

Description

This mlr3misc::Callback writes the mlr3::BenchmarkResult after each batch to disk.

Examples

clbk("mlr3tuning.backup", path = "backup.rds")

# tune classification tree on the pima data set
instance = tune(
  tuner = tnr("random_search", batch_size = 2),
  task = tsk("pima"),
  learner = lrn("classif.rpart", cp = to_tune(1e-04, 1e-1, logscale = TRUE)),
  resampling = rsmp("cv", folds = 3),
  measures = msr("classif.ce"),
  term_evals = 4,
  callbacks = clbk("mlr3tuning.backup", path = tempfile(fileext = ".rds"))
)

[Package mlr3tuning version 1.0.0 Index]