log_event | R Documentation |
Log event
log_event(..., step = get_global_step(increment = TRUE))
... |
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 |
Invisibly returns the logged data.
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.
temp <- tempfile()
with_logdir(temp, {
log_event(
train = list(loss = runif(1), acc = runif(1)),
valid = list(loss = runif(1), acc = runif(1))
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.