We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bde52b8 commit d4de0bfCopy full SHA for d4de0bf
R/CallbackSetTB.R
@@ -28,14 +28,15 @@ CallbackSetTB = R6Class("CallbackSetTB",
28
dir.create(path, recursive = TRUE)
29
}
30
self$log_train_loss = assert_flag(log_train_loss)
31
+ if (self$log_train_loss) {
32
+ self$on_batch_end = function() {
33
+ private$.log_train_loss()
34
+ }
35
36
},
37
#' @description
38
#' Logs the training loss, training measures, and validation measures as TensorBoard events.
39
on_epoch_end = function() {
- if (self$log_train_loss) {
- private$.log_train_loss()
- }
-
40
if (length(self$ctx$last_scores_train)) {
41
walk(names(self$ctx$measures_train), private$.log_train_score)
42
0 commit comments