Skip to content

Commit

Permalink
chore: add timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Jan 15, 2025
1 parent 535c418 commit 17f820d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/ObjectiveTuningAsync.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ ObjectiveTuningAsync = R6Class("ObjectiveTuningAsync",
call_back("on_eval_after_xs", self$callbacks, self$context)
self$learner$param_set$set_values(.values = private$.xs, .insert = FALSE)

lg$debug("Resampling hyperparameter configuration")

# resample hyperparameter configuration
private$.resample_result = resample(self$task, self$learner, self$resampling, store_models = self$store_models, allow_hotstart = TRUE, clone = character(0))
call_back("on_eval_after_resample", self$callbacks, self$context)

lg$debug("Aggregating performance")

# aggregate performance
private$.aggregated_performance = as.list(private$.resample_result$aggregate(self$measures))

lg$debug("Aggregated performance %s", as_short_string(private$.aggregated_performance))

# add runtime, errors and warnings
Expand All @@ -52,7 +57,7 @@ ObjectiveTuningAsync = R6Class("ObjectiveTuningAsync",

# add benchmark result and models
if (self$store_benchmark_result) {
lg$debug("Storing resample result.")
lg$debug("Storing resample result")
private$.aggregated_performance = c(private$.aggregated_performance, list(resample_result = list(private$.resample_result)))
}

Expand Down

0 comments on commit 17f820d

Please sign in to comment.