mlr3tuning.measures {mlr3tuning} | R Documentation |
Measure Callback
Description
This mlr3misc::Callback scores the hyperparameter configurations on additional measures while tuning. Usually, the configurations can be scored on additional measures after tuning (see ArchiveBatchTuning). However, if the memory is not sufficient to store the mlr3::BenchmarkResult, it is necessary to score the additional measures while tuning. The measures are not taken into account by the tuner.
Examples
clbk("mlr3tuning.measures")
# additionally score the configurations on the accuracy measure
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.measures", measures = msr("classif.acc"))
)
[Package mlr3tuning version 1.0.0 Index]