| mlr_terminators_combo | R Documentation |
This class takes multiple Terminators and terminates as soon as one or all of the included terminators are positive.
This Terminator can be instantiated via the
dictionary mlr_terminators or with the associated
sugar function trm():
mlr_terminators$get("combo")
trm("combo")
anylogical(1)
Terminate iff any included terminator is positive? (not all).
Default is TRUE.
bbotk::Terminator -> TerminatorCombo
terminators(list())
List of objects of class Terminator.
new()Creates a new instance of this R6 class.
TerminatorCombo$new(terminators = list(TerminatorNone$new()))
terminators(list())
List of objects of class Terminator.
is_terminated()Is TRUE iff the termination criterion is positive, and FALSE
otherwise.
TerminatorCombo$is_terminated(archive)
archive(Archive).
logical(1).
print()Printer.
TerminatorCombo$print(...)
...(ignored).
remaining_time()Returns the remaining runtime in seconds. If any = TRUE, the remaining
runtime is determined by the time-based terminator with the shortest time
remaining. If non-time-based terminators are used and any = FALSE,
the the remaining runtime is always Inf.
TerminatorCombo$remaining_time(archive)
archive(Archive).
integer(1).
status_long()Returns max_steps and current_steps for each terminator.
TerminatorCombo$status_long(archive)
archive(Archive).
data.table::data.table.
clone()The objects of this class are cloneable with this method.
TerminatorCombo$clone(deep = FALSE)
deepWhether to make a deep clone.
Other Terminator:
Terminator,
mlr_terminators,
mlr_terminators_clock_time,
mlr_terminators_evals,
mlr_terminators_none,
mlr_terminators_perf_reached,
mlr_terminators_run_time,
mlr_terminators_stagnation,
mlr_terminators_stagnation_batch,
mlr_terminators_stagnation_hypervolume
trm("combo",
list(trm("clock_time", stop_time = Sys.time() + 60),
trm("evals", n_evals = 10)), any = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.