Skip to content

Commit

Permalink
fix: eval_batch with callback
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Jun 18, 2024
1 parent 7d7a18c commit f90bf58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/OptimInstanceBatch.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f90bf58

Please sign in to comment.