Closed mb706 closed 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.
tune()
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
Thanks! Fixed in https://github.com/mlr-org/bbotk/pull/209
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.