Error in `irace::irace(scenario = scenario, parameters = paradox_to_irace(inst$search_space, 
    pv$digits))`: unused argument (parameters = paradox_to_irace(inst$search_space, pv$digits))

x = capture.output({z = test_tuner("irace", term_evals = 42, real_evals = 39)})
expect_subset(c("race", "step", "configuration", "instance"), names(archive))
# first elite of the first race should have the lowest average performance
aggr = archive[race == 1, .(classif.ce = mean(classif.ce)), by = configuration]
# the performance of the best configuration should be the mean performance across all evaluated instances
expect_equal(unname(instance$result_y), mean(archive[configuration == configuration_id, classif.ce]))
test_that("TunerIrace works with dependencies", {
minsplit = p_int(lower = 1, upper = 10, depends = cp == 0.005)
instance = TuningInstanceBatchSingleCrit$new(tsk("iris"), lrn("classif.rpart"), rsmp("holdout"), msr("classif.ce"),
trm("evals", n_evals = 96), search_space)
test_that("TunerIrace works with logical parameters", {
instance = TuningInstanceBatchSingleCrit$new(tsk("mtcars"), lrn("regr.rpart"), rsmp("holdout"), msr("regr.mse"),
trm("evals", n_evals = 42), search_space)
search_space = ps(cp = p_dbl(lower = pi * 1e-20, upper = 5.242e12 / 1e13))
trm("evals", n_evals = 30), search_space)
tuner = tnr("irace", nbIterations = 1L, minNbSurvival = 1)
test_that("TunerIrace works with unnamed discrete values", {
# we had a bug here, see (mlr) issue #627
search_space = ps(minsplit = p_int(lower = 2L, upper = 7L))
inst = TuningInstanceBatchSingleCrit$new(tsk("iris"), lrn("classif.rpart"), rsmp("holdout"), msr("classif.ce"),
trm("evals", n_evals = 50), search_space)

"TunerIrace works with logical parameters"
"TunerIrace works with unnamed discrete values"

TunerIrace works with logical parameters

TunerIrace works with unnamed discrete values