From f90bf58156d815a1dba122bee7994a4bcbfd0940 Mon Sep 17 00:00:00 2001 From: be-marc Date: Tue, 18 Jun 2024 08:21:13 +0200 Subject: [PATCH] fix: eval_batch with callback --- R/OptimInstanceBatch.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/OptimInstanceBatch.R b/R/OptimInstanceBatch.R index 6ae3801e..38a17cad 100644 --- a/R/OptimInstanceBatch.R +++ b/R/OptimInstanceBatch.R @@ -70,6 +70,7 @@ OptimInstanceBatch = R6Class("OptimInstanceBatch", #' columns for extra information. eval_batch = function(xdt) { private$.xdt = xdt + if (is.null(self$objective$context)) private$.initialize_context(NULL) call_back("on_optimizer_before_eval", self$objective$callbacks, self$objective$context) # update progressor if (!is.null(self$progressor)) self$progressor$update(self$terminator, self$archive)