powered by
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:
minutes
seconds
microseconds
S4 object.
S4
LoggerTime$new(use_as_stopper, max_time, time_unit)
use_as_stopper
logical(1)
Boolean to indicate if the logger should also be used as stopper.
max_time
integer(1)
If the logger is used as stopper this argument contains the maximal time which are available to train the model.
time_unit
character(1)
Character to specify the time unit. Possible choices are minutes, seconds or microseconds
This class doesn't contain public fields.
summarizeLogger()
Summarize the logger object.
This class is a wrapper around the pure C++ implementation. To see the functionality of the C++ class visit https://schalkdaniel.github.io/compboost/cpp_man/html/classlogger_1_1_time_logger.html.
C++
# NOT RUN { # Define logger: log.time = LoggerTime$new(FALSE, 20, "minutes") # Summarize logger: log.time$summarizeLogger() # }
Run the code above in your browser using DataLab