| mlr_terminators_stagnation_batch | R Documentation |
Class to terminate the optimization after the performance stagnates, i.e.
does not improve more than threshold over the last n batches.
This Terminator can be instantiated via the
dictionary mlr_terminators or with the associated
sugar function trm():
mlr_terminators$get("stagnation_batch")
trm("stagnation_batch")
ninteger(1)
Number of batches to evaluate the performance improvement on, default
is 1.
thresholdnumeric(1)
If the improvement is less than threshold, optimization is stopped,
default is 0.
bbotk::Terminator -> TerminatorStagnationBatch
new()Creates a new instance of this R6 class.
TerminatorStagnationBatch$new()
is_terminated()Is TRUE iff the termination criterion is positive, and FALSE
otherwise.
TerminatorStagnationBatch$is_terminated(archive)
archive(Archive).
logical(1).
clone()The objects of this class are cloneable with this method.
TerminatorStagnationBatch$clone(deep = FALSE)
deepWhether to make a deep clone.
Other Terminator:
Terminator,
mlr_terminators,
mlr_terminators_clock_time,
mlr_terminators_combo,
mlr_terminators_evals,
mlr_terminators_none,
mlr_terminators_perf_reached,
mlr_terminators_run_time,
mlr_terminators_stagnation,
mlr_terminators_stagnation_hypervolume
TerminatorStagnationBatch$new()
trm("stagnation_batch", n = 1, threshold = 1e-5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.