Description Format Usage Arguments Details Fields Methods Examples
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.
1 | 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 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.
This class doesn't contain public fields.
summarizeLogger()
Summarize the logger object.
1 2 3 4 5 | # Define logger:
log.time = LoggerTime$new(FALSE, 20, "minutes")
# Summarize logger:
log.time$summarizeLogger()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.