Closed MalteKurz closed 2 years ago
Tuning with default tune_settings fails. Typo in https://github.com/DoubleML/doubleml-for-r/blob/acb9d46ee7eece72efff61e6cdc089c69696572b/R/double_ml.R#L774
tune_settings
library(DoubleML) library(mlr3) library(mlr3learners) library(data.table) set.seed(2) ml_g = lrn("regr.ranger", num.trees = 10, max.depth = 2) ml_m = ml_g$clone() obj_dml_data = make_plr_CCDDHNR2018(alpha = 0.5) dml_plr_obj = DoubleMLPLR$new(obj_dml_data, ml_g, ml_m) par_grids = list("ml_g" = paradox::ParamSet$new(list( paradox::ParamInt$new("num.trees", lower = 1, upper = 10, default = 5))), "ml_m" = paradox::ParamSet$new(list( paradox::ParamInt$new("num.trees", lower = 1, upper = 10, default = 5)))) dml_plr_obj$tune(param_set=par_grids)
No exception
Exception
Error in loadNamespace(name) : there is no package called ‘mlr3tunin’
> sessionInfo() R version 4.0.4 (2021-02-15) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 21.10 > packageVersion('DoubleML') [1] ‘0.4.1’ > packageVersion('mlr3') [1] ‘0.11.0.9000’
Describe the bug
Tuning with default
tune_settings
fails. Typo in https://github.com/DoubleML/doubleml-for-r/blob/acb9d46ee7eece72efff61e6cdc089c69696572b/R/double_ml.R#L774Minimum reproducible code snippet
Expected Result
No exception
Actual Result
Exception
Versions