Terminator that stops when optimization does not improve
Source:R/TerminatorStagnation.R
mlr_terminators_stagnation.RdClass to terminate the optimization after the performance stagnates, i.e.
does not improve more than threshold over the last iters iterations.
Dictionary
This Terminator can be instantiated via the
dictionary mlr_terminators or with the associated
sugar function trm():
Parameters
itersinteger(1)
Number of iterations to evaluate the performance improvement on, default is 10.thresholdnumeric(1)
If the improvement is less thanthreshold, optimization is stopped, default is0.
Super class
Terminator -> TerminatorStagnation
Methods
TerminatorStagnation$new()
Creates a new instance of this R6 class.
Usage
TerminatorStagnation$new()TerminatorStagnation$is_terminated()
Is TRUE iff the termination criterion is positive, and FALSE
otherwise.
Arguments
archive(Archive).
Examples
TerminatorStagnation$new()
#>
#> ── <TerminatorStagnation> - Stagnation ─────────────────────────────────────────
#> • Parameters: iters=10, threshold=0
trm("stagnation", iters = 5, threshold = 1e-5)
#>
#> ── <TerminatorStagnation> - Stagnation ─────────────────────────────────────────
#> • Parameters: iters=5, threshold=1e-05