Some minor notes:
> knitr::opts_chunk$set(
+ collapse = TRUE,
+ comment = "#>"
+ )
> library(tfevents)
> temp <- tempfile()
> set_default_logdir(temp)
> log_event(text = "hello world")
> for (i in 1:10) {
+ log_event(hello = log(i + runif(1)))
+ }
> events <- collect_events(temp)
> events
Error: Corrupt x: no names
summaries <- collect_events(temp, type = "summary")
summaries
- Is this expected? Are summary objects meant to return themselves when subsetted?
summaries$summary[[1]][[1]][[1]][[1]][[1]]
- Would it be possible to make
as.list() return the values as R objects directly?
as.list(summaries$summary) # instead of sapply(,value)`
- Is there anything else a user would do with a
<tfevents_summary_values> other than extract the value? Maybe we don't need expose the protobuf structure and value() function and can just return R values to the user. E.g., collect_events() returns a data frame with a list column, each entry an atomic R vector, maybe with different class()'s for the different plugin types like structure(c(...), class = "tfevents_image", dim = c(128,3,3). What do you think?
con <- events_logdir(temp)
collect_events(con, n = 1, type = "scalar")
This is great!
Originally posted by @t-kalinowski in #27 (comment)
Some minor notes:
as.list()return the values as R objects directly?<tfevents_summary_values>other than extract the value? Maybe we don't need expose the protobuf structure andvalue()function and can just return R values to the user. E.g.,collect_events()returns a data frame with a list column, each entry an atomic R vector, maybe with differentclass()'s for the different plugin types likestructure(c(...), class = "tfevents_image", dim = c(128,3,3). What do you think?This is great!
Originally posted by @t-kalinowski in #27 (comment)