R/event_writer.R

Defines functions create_event_writer

create_event_writer <- function(logdir) {
  fs::dir_create(logdir, recurse = TRUE)
  fname <- file.path(
    logdir,
    paste0("events.out.tfevents.", as.integer(Sys.time()), ".v2")
  )
  fs::file_create(fname)
  event_writer(fname)
}

Try the tfevents package in your browser

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

tfevents documentation built on June 27, 2024, 5:10 p.m.