Skip to content

Commit

Permalink
fix: data.table
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Feb 29, 2024
1 parent d1454c2 commit 68ee00c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Depends:
R (>= 3.1.0)
Imports:
checkmate (>= 2.0.0),
data.table (>= 1.15.2),
data.table,
lgr,
methods,
mlr3misc (>= 0.11.0),
Expand Down
2 changes: 1 addition & 1 deletion R/OptimizerIrace.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ target_runner_default = function(experiment, exec.target.runner, scenario, targe
configuration
})
# fix logicals
lgl_params = as.data.table(optim_instance$search_space)[class == "ParamLgl", id, env = list(id = "id")]
lgl_params = as.data.table(optim_instance$search_space)[class == "ParamLgl", "id"][[1]]
if (length(lgl_params)) xdt[, (lgl_params) := lapply(.SD, as.logical), .SDcols = lgl_params]

# provide experiment instances to objective
Expand Down

0 comments on commit 68ee00c

Please sign in to comment.