powered by
This class takes multiple Terminators and terminates as soon as one or all of the included terminators are positive.
R6::R6Class object inheriting from Terminator.
TerminatorCombo$new(terminators = list(TerminatorNone$new())) term("combo")
terminators :: list() List of objects of class Terminator.
terminators
list()
any :: logical(1) Terminate iff any included terminator is positive? (not all), default is `TRUE.
any
logical(1)
Other Terminator: Terminator, mlr_terminators_clock_time, mlr_terminators_evals, mlr_terminators_model_time, mlr_terminators_none, mlr_terminators_perf_reached, mlr_terminators_stagnation, mlr_terminators
Terminator
mlr_terminators_clock_time
mlr_terminators_evals
mlr_terminators_model_time
mlr_terminators_none
mlr_terminators_perf_reached
mlr_terminators_stagnation
mlr_terminators
# NOT RUN { term("combo", list(term("model_time", secs = 60), term("evals", n_evals = 10)), any = FALSE ) # }
Run the code above in your browser using DataLab