mlr-org / mlr3tuning

Hyperparameter optimization package of the mlr3 ecosystem
https://mlr3tuning.mlr-org.com/
GNU Lesser General Public License v3.0
55 stars 5 forks source link

Tuning without a search space #394

Closed mb706 closed 1 year ago

mb706 commented 1 year ago

Not sure whether this is because I have broken my R install, but: tune() without a search space actually tunes, but the result can not be printed.

  1. should tuning without a search space actually work?
  2. if so, the printer should probably be repaired
library("mlr3tuning")
lgr::get_logger("mlr3")$set_threshold("warn")
lgr::get_logger("bbotk")$set_threshold("warn")
tune(tnr("random_search"), tsk("iris"), lrn("classif.rpart"), rsmp("holdout"), term_evals = 10)
#> <TuningInstanceSingleCrit>
#> * State:  Optimized
#> * Objective: <ObjectiveTuning:classif.rpart_on_iris>
#> * Search Space:
#> Error in `[.data.table`(as.data.table(self$search_space), , c("id", "class",  : 
#>   column(s) not found: id, class, lower, upper, nlevels
be-marc commented 1 year ago

Thanks! Fixed in https://github.com/mlr-org/bbotk/pull/209