Terminator that stops when optimization does not improve
Source:R/TerminatorStagnationBatch.R
mlr_terminators_stagnation_batch.Rd
Class to terminate the optimization after the performance stagnates, i.e.
does not improve more than threshold
over the last n
batches.
Dictionary
This Terminator can be instantiated via the
dictionary mlr_terminators or with the associated
sugar function trm()
:
Parameters
n
integer(1)
Number of batches to evaluate the performance improvement on, default is 1.threshold
numeric(1)
If the improvement is less thanthreshold
, optimization is stopped, default is0
.
Super class
bbotk::Terminator
-> TerminatorStagnationBatch
Methods
Method is_terminated()
Is TRUE
iff the termination criterion is positive, and FALSE
otherwise.
Arguments
archive
(Archive).
Examples
TerminatorStagnationBatch$new()
#> <TerminatorStagnationBatch>: Stagnation Batch
#> * Parameters: n=1, threshold=0
trm("stagnation_batch", n = 1, threshold = 1e-5)
#> <TerminatorStagnationBatch>: Stagnation Batch
#> * Parameters: n=1, threshold=1e-05