Logger class to log the current iteration
Arguments
- logger_id
(character(1)
)
Identifier of the logger.
- use_as_stopper
(logical(1)
)
Boolean to indicate if the logger should also be used as a stopper.
- max_iterations
(integer(1)
)
If the logger is used as stopper this argument defines the maximal iterations.
Usage
LoggerIterationWrapper$new(logger_id, use_as_stopper, max_iterations)
Fields
This class doesn't contain public fields.
Examples
# Define logger:
log_iters = LoggerIteration$new("iterations", FALSE, 100)
# Summarize logger:
log_iters$summarizeLogger()
#> Iteration logger:
#> - Maximal iterations: 100
#> - Use logger as stopper: 0