Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Nov 29, 2024
1 parent 81b880f commit 2ad3d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/worker.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ learner_train = function(learner, task, train_row_ids = NULL, test_row_ids = NUL
if (mode == "train") learner$state = list()

lg$debug("Calling %s method of Learner '%s' on task '%s' with %i observations",
mode, learner$id, task$id, task$nrow, learner = learner$clone())
mode, learner$id, task$id, task$nrow, learner = learner$clone())

# call train_wrapper with encapsulation
result = encapsulate(learner$encapsulation["train"],
Expand Down Expand Up @@ -104,7 +104,7 @@ learner_train = function(learner, task, train_row_ids = NULL, test_row_ids = NUL
lg$info("Learner '%s' on task '%s' failed to %s a model",
learner$id, task$id, mode, learner = learner$clone(), messages = result$log$msg)
} else {
lg$debug("Learner '%s' on task '%s' succeeded to %s a model",
lg$debug("Learner '%s' on task '%s' succeeded to %s a model",
learner$id, task$id, mode, learner = learner$clone(), result = result$result, messages = result$log$msg)
}

Expand Down

0 comments on commit 2ad3d54

Please sign in to comment.