Class to terminate the tuning after the performance stagnates, i.e. does not improve more than threshold over the last iters iterations.
threshold
iters
R6::R6Class object inheriting from Terminator.
t = TerminatorStagnation$new()
iters :: integer(1) Number of iterations to evaluate the performance improvement on, default is 10.
integer(1)
threshold :: numeric(1) If the improvement is less than threshold, tuning is stopped, default is 0.
numeric(1)
0
Other Terminator: TerminatorClockTime, TerminatorCombo, TerminatorEvals, TerminatorModelTime, TerminatorNone, TerminatorPerfReached, Terminator, mlr_terminators
TerminatorClockTime
TerminatorCombo
TerminatorEvals
TerminatorModelTime
TerminatorNone
TerminatorPerfReached
Terminator
mlr_terminators
# NOT RUN { TerminatorStagnation$new() term("stagnation", iters = 5, threshold = 1e-5) # }
Run the code above in your browser using DataLab