mlr3tuning.measures | R Documentation |
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.
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"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.