Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Dec 17, 2024
1 parent cef10e3 commit b5f8fc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions R/TunerBatchIrace.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
4 changes: 2 additions & 2 deletions man/mlr_tuners_irace.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions tests/testthat/test_TunerBatchIrace.R
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand All @@ -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())
Expand All @@ -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"),
Expand All @@ -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(
Expand Down

0 comments on commit b5f8fc4

Please sign in to comment.