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: Terminator, mlr_terminators_clock_time, mlr_terminators_combo, mlr_terminators_evals, mlr_terminators_model_time, mlr_terminators_none, mlr_terminators_perf_reached, mlr_terminators
Terminator
mlr_terminators_clock_time
mlr_terminators_combo
mlr_terminators_evals
mlr_terminators_model_time
mlr_terminators_none
mlr_terminators_perf_reached
mlr_terminators
# NOT RUN { TerminatorStagnation$new() term("stagnation", iters = 5, threshold = 1e-5) # }
Run the code above in your browser using DataLab