powered by
Class to terminate the optimization after a fixed time point has been reached (as reported by Sys.time()).
Sys.time()
This Terminator can be instantiated via the dictionary mlr_terminators or with the associated sugar function trm():
trm()
mlr_terminators$get("clock_time") trm("clock_time")
stop_time
POSIXct(1) Terminator stops after this point in time.
POSIXct(1)
bbotk::Terminator -> TerminatorClockTime
bbotk::Terminator
TerminatorClockTime
TerminatorClockTime$new()
TerminatorClockTime$is_terminated()
TerminatorClockTime$clone()
Inherited methods bbotk::Terminator$format() bbotk::Terminator$print() bbotk::Terminator$remaining_time() bbotk::Terminator$status()
bbotk::Terminator$format()
bbotk::Terminator$print()
bbotk::Terminator$remaining_time()
bbotk::Terminator$status()
new()
Creates a new instance of this R6 class.
is_terminated()
Is TRUE iff the termination criterion is positive, and FALSE otherwise.
TRUE
FALSE
TerminatorClockTime$is_terminated(archive)
archive
(Archive).
logical(1).
logical(1)
clone()
The objects of this class are cloneable with this method.
TerminatorClockTime$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other Terminator: Terminator, mlr_terminators, mlr_terminators_combo, mlr_terminators_evals, mlr_terminators_none, mlr_terminators_perf_reached, mlr_terminators_run_time, mlr_terminators_stagnation, mlr_terminators_stagnation_batch
Terminator
mlr_terminators
mlr_terminators_combo
mlr_terminators_evals
mlr_terminators_none
mlr_terminators_perf_reached
mlr_terminators_run_time
mlr_terminators_stagnation
mlr_terminators_stagnation_batch
stop_time = as.POSIXct("2030-01-01 00:00:00") trm("clock_time", stop_time = stop_time)
Run the code above in your browser using DataLab