This class just logs the elapsed time. This should be very handy if one wants to run the algorithm for just 2 hours and see how far he comes within that time. There are three time units available for logging:
LoggerTime$new(logger_id, use_as_stopper, max_time, time_unit)
Unique identifier of the logger.
Boolean to indicate if the logger should also be used as stopper.
If the logger is used as stopper this argument contains the maximal time which are available to train the model.
Character to specify the time unit. Possible choices are
This class doesn't contain public fields.
Summarize the logger object.
# Define logger: log_time = LoggerTime$new("time_minutes", FALSE, 20, "minutes") # Summarize logger: log_time$summarizeLogger()#> Time logger: #> - Tracked time unit: minutes