-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/tflog callback #290
Feat/tflog callback #290
Conversation
R/CallbackSetTB.R
Outdated
#' Meaningful changes happen at the end of each epoch. | ||
#' Notably NOT on_batch_valid_end, since there are no gradient steps between validation batches, | ||
#' and therefore differences are due to randomness | ||
# TODO: display the appropriate x axis with its label in TensorBoard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the step argument in log_event calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's ambiguous here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only did some basic sanity checking (basically just looked at the test case in TensorBoard), so wasn't 100% confident in the correctness at the time of writing. But I think there's not a whole lot to mess up here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See individual comments
…t. still need to incorporate the step logging
23d6f7b
to
7c9f431
Compare
The conversations left open are the ones that I see as slightly more ambiguous (we might want to discuss design, or look more closely to confirm that they have truly been addressed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Mostly minor style issues that are not so important in the tests but it's good to generally keep them in mind.
tests/testthat/test_CallbackSetTB.R
Outdated
|
||
events = mlr3misc::map(collect_events(pth0)$summary, unlist) | ||
|
||
n_train_loss_events = sum(unlist(mlr3misc::map(events, event_tag_is, tag_name = "train.loss"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again map_lgl
tests/testthat/test_CallbackSetTB.R
Outdated
|
||
events = mlr3misc::map(collect_events(pth0)$summary, unlist) | ||
|
||
n_train_loss_events = sum(unlist(mlr3misc::map(events, event_tag_is, tag_name = "train.loss"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use map_lgl
Co-authored-by: Sebastian Fischer <[email protected]>
Co-authored-by: Sebastian Fischer <[email protected]>
Co-authored-by: Sebastian Fischer <[email protected]>
Co-authored-by: Sebastian Fischer <[email protected]>
setnames() is cleaner, allows us to create a list and set the names in a single line Co-authored-by: Sebastian Fischer <[email protected]>
Co-authored-by: Sebastian Fischer <[email protected]>
Co-authored-by: Sebastian Fischer <[email protected]>
Co-authored-by: Sebastian Fischer <[email protected]>
Co-authored-by: Sebastian Fischer <[email protected]>
Make test more efficient Co-authored-by: Sebastian Fischer <[email protected]>
…unction from tfevents
map_lgl()
and avoid extraneous function calls