log_event {tfevents} | R Documentation |
Log event
Description
Log event
Usage
log_event(..., step = get_global_step(increment = TRUE))
Arguments
... |
Named values that you want to log. They can be possibly nested, in this case, the enclosing names are considered 'run' names by TensorBoard. |
step |
The step associated the logs. If |
Value
Invisibly returns the logged data.
Note
log_event()
writes events to the default logdir
. You can query the
default logdir
with get_default_logdir()
and modify it with
set_default_logdir()
. You can also use the with_logdir()
context switcher
to temporarily modify the logdir.
Examples
temp <- tempfile()
with_logdir(temp, {
log_event(
train = list(loss = runif(1), acc = runif(1)),
valid = list(loss = runif(1), acc = runif(1))
)
})
[Package tfevents version 0.0.4 Index]