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 1aa7a2a commit d1454c2
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 30 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,
data.table (>= 1.15.2),
lgr,
methods,
mlr3misc (>= 0.11.0),
Expand Down
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ import(mlr3misc)
import(paradox)
importFrom(R6,R6Class)
importFrom(methods,formalArgs)
importFrom(mlr3misc,clbk)
importFrom(mlr3misc,clbks)
importFrom(mlr3misc,mlr_callbacks)
importFrom(utils,bibentry)
importFrom(utils,capture.output)
importFrom(utils,head)
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]
lgl_params = as.data.table(optim_instance$search_space)[class == "ParamLgl", id, env = list(id = "id")]
if (length(lgl_params)) xdt[, (lgl_params) := lapply(.SD, as.logical), .SDcols = lgl_params]

# provide experiment instances to objective
Expand Down
9 changes: 1 addition & 8 deletions man/Codomain.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/Terminator.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mlr_terminators.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mlr_terminators_clock_time.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mlr_terminators_combo.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mlr_terminators_evals.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mlr_terminators_none.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mlr_terminators_perf_reached.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mlr_terminators_run_time.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mlr_terminators_stagnation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/mlr_terminators_stagnation_batch.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1454c2

Please sign in to comment.