| write_log | R Documentation |
Function for writing a log file from R containing three rows and three columns. The log file can report the current status of maximal three processes. The first row describes the top process. The second row describes the status of the process within the top process. The third row can be used to describe the status of a process within the middle process.
The log can be read with read_log.
write_log(
log_file,
value_top = 0L,
total_top = 1L,
message_top = NA,
value_middle = 0L,
total_middle = 1L,
message_middle = NA,
value_bottom = 0L,
total_bottom = 1L,
message_bottom = NA,
last_log = NULL,
write_interval = 2L
)
log_file |
|
value_top |
|
total_top |
|
message_top |
|
value_middle |
|
total_middle |
|
message_middle |
|
value_bottom |
|
total_bottom |
|
message_bottom |
|
last_log |
|
write_interval |
|
This function writes a log file to the given location. If log_file is NULL the function will not try to
write a log file.
If log_file is a valid path to a file the function will write a log if the time specified by
write_interval has passed. In addition the function will return an object of class POSIXct describing the time
when the log file was successfully updated. If the initial attempt for writing log fails the function returns the
value of last_log which is NULL by default.
Other Utils Log Developers:
cat_message(),
clean_pytorch_log_transformers(),
output_message(),
print_message(),
read_log(),
read_loss_log(),
reset_log(),
reset_loss_log()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.