
Last chance! 50% off unlimited learning
Sale ends in
Class to terminate the tuning either after the complete process took a number of seconds on the clock
or a fixed time point has been reached (as reported by Sys.time()
).
R6::R6Class object inheriting from Terminator.
TerminatorClockTime$new() term("clock_time")
secs
:: numeric(1)
Maximum allowed time, in seconds, default is 100.
Mutually exclusive with argument stop_time
.
stop_time
:: POSIXct(1)
Terminator stops after this point in time.
Mutually exclusive with argument secs
.
Other Terminator:
Terminator
,
mlr_terminators_combo
,
mlr_terminators_evals
,
mlr_terminators_model_time
,
mlr_terminators_none
,
mlr_terminators_perf_reached
,
mlr_terminators_stagnation
,
mlr_terminators
# NOT RUN {
term("clock_time", secs = 1800)
stop_time = as.POSIXct("2030-01-01 00:00:00")
term("clock_time", stop_time = stop_time)
# }
Run the code above in your browser using DataLab