| mlr_terminators_evals {bbotk} | R Documentation |
Class to terminate the optimization depending on the number of evaluations. An evaluation is defined by one resampling of a parameter value.
This Terminator can be instantiated via the
dictionary mlr_terminators or with the associated
sugar function trm():
mlr_terminators$get("evals")
trm("evals")
n_evalsinteger(1)
Number of allowed evaluations, default is 100L.
bbotk::Terminator -> TerminatorEvals
new()Creates a new instance of this R6 class.
TerminatorEvals$new()
is_terminated()Is TRUE iff the termination criterion is positive, and FALSE
otherwise.
TerminatorEvals$is_terminated(archive)
archive(Archive).
logical(1).
clone()The objects of this class are cloneable with this method.
TerminatorEvals$clone(deep = FALSE)
deepWhether to make a deep clone.
Other Terminator:
Terminator,
mlr_terminators_clock_time,
mlr_terminators_combo,
mlr_terminators_none,
mlr_terminators_perf_reached,
mlr_terminators_run_time,
mlr_terminators_stagnation_batch,
mlr_terminators_stagnation,
mlr_terminators
TerminatorEvals$new()
trm("evals", n_evals = 5)