Terminator that stops after a number of evaluations
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.
TerminatorEvals$new()
trm("evals", n_evals = 5)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.