mlr3tuning (version 0.1.0)

TerminatorClockTime: Terminator that stops according to the clock time

Description

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()).

Arguments

Format

R6::R6Class object inheriting from Terminator.

Construction

TerminatorClockTime$new()
term("clock_time")

Parameters

  • 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.

See Also

Other Terminator: TerminatorCombo, TerminatorEvals, TerminatorModelTime, TerminatorNone, TerminatorPerfReached, TerminatorStagnation, Terminator, mlr_terminators

Examples

Run this code
# 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 DataCamp Workspace