diff --git a/R/TunerBatchIrace.R b/R/TunerBatchIrace.R index 7e06e603..8b3fab88 100644 --- a/R/TunerBatchIrace.R +++ b/R/TunerBatchIrace.R @@ -54,8 +54,8 @@ #' # load learner and set search space #' learner = lrn("classif.rpart", cp = to_tune(1e-04, 1e-1, logscale = TRUE)) #' -#' # currently there is bug in irace 4.0.0 that sometimes let the example crash -#' \dontrun{ +#' # runtime of the example is too long +#' \donttest{ #' # hyperparameter tuning on the pima indians diabetes data set #' instance = tune( #' tuner = tnr("irace"), diff --git a/man/mlr_tuners_irace.Rd b/man/mlr_tuners_irace.Rd index cf1d290e..65bcf2f7 100644 --- a/man/mlr_tuners_irace.Rd +++ b/man/mlr_tuners_irace.Rd @@ -109,8 +109,8 @@ task = tsk("pima") # load learner and set search space learner = lrn("classif.rpart", cp = to_tune(1e-04, 1e-1, logscale = TRUE)) -# currently there is bug in irace 4.0.0 that sometimes let the example crash -\dontrun{ +# runtime of the example is too long +\donttest{ # hyperparameter tuning on the pima indians diabetes data set instance = tune( tuner = tnr("irace"), diff --git a/tests/testthat/test_TunerBatchIrace.R b/tests/testthat/test_TunerBatchIrace.R index 39a6887d..f14ca37c 100644 --- a/tests/testthat/test_TunerBatchIrace.R +++ b/tests/testthat/test_TunerBatchIrace.R @@ -1,7 +1,6 @@ skip_if_not_installed("irace") test_that("TunerIrace", { - skip_if(TRUE) # Remove this line when irace is fixed z = test_tuner("irace", term_evals = 42) instance = z$inst archive = instance$archive$data @@ -23,7 +22,6 @@ test_that("TunerIrace", { }) test_that("TunerIrace works with dependencies", { - skip_if(TRUE) # Remove this line when irace is fixed search_space = ps( cp = p_dbl(lower = 0.001, upper = 0.1), minsplit = p_int(lower = 1, upper = 10, depends = cp == 0.005) @@ -44,7 +42,6 @@ test_that("TunerIrace works with dependencies", { }) test_that("TunerIrace works with logical parameters", { - skip_if(TRUE) # Remove this line when irace is fixed search_space = ps( cp = p_dbl(lower = 0.001, upper = 0.1), keep_model = p_lgl()) @@ -61,9 +58,8 @@ test_that("TunerIrace works with logical parameters", { }) test_that("TunerIrace uses digits", { - skip_if(TRUE) # Remove this line when irace is fixed search_space = ps(cp = p_dbl(lower = pi * 1e-20, upper = 5.242e12 / 1e13)) - instance = ti( + instance = ti( task = tsk("mtcars"), learner = lrn("regr.rpart"), resampling = rsmp("holdout"), @@ -75,7 +71,6 @@ test_that("TunerIrace uses digits", { }) test_that("TunerIrace works with unnamed discrete values", { - skip_if(TRUE) # Remove this line when irace is fixed # we had a bug here, see (mlr) issue #627 search_space = ps(minsplit = p_int(lower = 2L, upper = 7L)) instance = ti(