Skip to content

Commit

Permalink
refactor: only pass extra to assign_result
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Nov 26, 2024
1 parent 541c478 commit 0dbfde5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions R/TuningInstanceAsyncMulticrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,9 @@ TuningInstanceAsyncMultiCrit = R6Class("TuningInstanceAsyncMultiCrit",
#'
#' @param ydt (`numeric(1)`)\cr
#' Optimal outcomes, e.g. the Pareto front.
#' @param xydt (`data.table::data.table()`)\cr
#' Point, outcome, and additional information.
#' @param ... (`any`)\cr
#' ignored.
assign_result = function(xdt, ydt, learner_param_vals = NULL, extra = NULL, xydt = NULL, ...) {
assign_result = function(xdt, ydt, learner_param_vals = NULL, extra = NULL, ...) {
# workaround
extra = extra %??% xydt

Expand Down
4 changes: 1 addition & 3 deletions R/TuningInstanceAsyncSingleCrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@ TuningInstanceAsyncSingleCrit = R6Class("TuningInstanceAsyncSingleCrit",
#'
#' @param y (`numeric(1)`)\cr
#' Optimal outcome.
#' @param xydt (`data.table::data.table()`)\cr
#' Point, outcome, and additional information (Deprecated).
#' @param ... (`any`)\cr
#' ignored.
assign_result = function(xdt, y, learner_param_vals = NULL, extra = NULL, xydt = NULL, ...) {
assign_result = function(xdt, y, learner_param_vals = NULL, extra = NULL, ...) {
# workaround
extra = extra %??% xydt

Expand Down
4 changes: 1 addition & 3 deletions R/TuningInstanceBatchMulticrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,9 @@ TuningInstanceBatchMultiCrit = R6Class("TuningInstanceBatchMultiCrit",
#'
#' @param ydt (`data.table::data.table()`)\cr
#' Optimal outcomes, e.g. the Pareto front.
#' @param xydt (`data.table::data.table()`)\cr
#' Point, outcome, and additional information (Deprecated).
#' @param ... (`any`)\cr
#' ignored.
assign_result = function(xdt, ydt, learner_param_vals = NULL, extra = NULL, xydt = NULL, ...) {
assign_result = function(xdt, ydt, learner_param_vals = NULL, extra = NULL, ...) {
# workaround
extra = extra %??% xydt

Expand Down
4 changes: 1 addition & 3 deletions R/TuningInstanceBatchSingleCrit.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,9 @@ TuningInstanceBatchSingleCrit = R6Class("TuningInstanceBatchSingleCrit",
#'
#' @param y (`numeric(1)`)\cr
#' Optimal outcome.
#' @param xydt (`data.table::data.table()`)\cr
#' Point, outcome, and additional information (Deprecated).
#' @param ... (`any`)\cr
#' ignored.
assign_result = function(xdt, y, learner_param_vals = NULL, extra = NULL, xydt = NULL, ...) {
assign_result = function(xdt, y, learner_param_vals = NULL, extra = NULL, ...) {
# workaround
extra = extra %??% xydt

Expand Down

0 comments on commit 0dbfde5

Please sign in to comment.