mlr3tuning (version 0.1.0)

TerminatorCombo: Combine Terminators

Description

This class takes multiple Terminators and terminates as soon as one or all of the included terminators are positive.

Arguments

Format

R6::R6Class object inheriting from Terminator.

Construction

TerminatorCombo$new(terminators = list(TerminatorNone$new()))
term("combo")
  • terminators :: list() List of objects of class Terminator.

Parameters

  • any :: logical(1) Terminate iff any included terminator is positive? (not all), default is `TRUE.

See Also

Other Terminator: TerminatorClockTime, TerminatorEvals, TerminatorModelTime, TerminatorNone, TerminatorPerfReached, TerminatorStagnation, Terminator, mlr_terminators

Examples

Run this code
# 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 DataCamp Workspace