Class to terminate the optimization after a performance level has been hit.
This Terminator can be instantiated via the
dictionary mlr_terminators or with the associated
sugar function trm()
:
mlr_terminators$get("perf_reached")
trm("perf_reached")
level
numeric(1)
Performance level that needs to be reached.
Default is 0.
Terminates if the performance exceeds (respective measure has to be maximized) or falls below (respective measure has to be minimized) this value.
bbotk::Terminator
-> TerminatorPerfReached
is_terminated()
Is TRUE
iff the termination criterion is positive, and FALSE
otherwise.
TerminatorPerfReached$is_terminated(archive)
archive
(Archive).
logical(1)
.
clone()
The objects of this class are cloneable with this method.
TerminatorPerfReached$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other Terminator:
Terminator
,
mlr_terminators
,
mlr_terminators_clock_time
,
mlr_terminators_combo
,
mlr_terminators_evals
,
mlr_terminators_none
,
mlr_terminators_run_time
,
mlr_terminators_stagnation
,
mlr_terminators_stagnation_batch
TerminatorPerfReached$new()
trm("perf_reached")
Run the code above in your browser using DataLab