tests/testthat/resources/test-tensorboard.R

library(tensorflow)

writer = tf$summary$create_file_writer("a-events-file2")

with(writer$as_default(), {

  for(step in seq(10))
    tf$summary$scalar("my_metric", 0.5, step=step)
    # other model code would go here
})

Try the guildai package in your browser

Any scripts or data that you put into this service are public.

guildai documentation built on March 7, 2023, 5:32 p.m.