R/utils.R

Defines functions log_to_csv

log_to_csv <- function(self, initialize = FALSE, sep = ",") {
  browser()
  write.table(data.frame(
    lr = self$lr,
    current_batch_count = self$current_batch_count,
    current_epoch_count = self$current_epoch_count
  ),
  "lr.csv",
  append = !initialize, sep = sep,
  col.names = initialize, row.names = FALSE, quote = FALSE
  )
}
lorenzwalthert/KerasMisc documentation built on May 7, 2021, 6:31 a.m.