Skip to contents

Scalar event

Usage

summary_scalar(value, ..., metadata = NULL, tag = NA)

Arguments

value

A numeric scalar value to be logged.

...

Currently unused. To allow future expansion.

metadata

A metadata object, as created with summary_metadata(). In most cases you don't need to change the default.

tag

A tag that within the TensorBoard UI. See log_event() for other ways of specifying the tag attribute.

Value

A <scalar_event> object.

See also

Examples

temp <- tempfile()
with_logdir(temp, {
  log_event(loss = summary_scalar(1))
})