Skip to content

Commit

Permalink
tests: fix irace budget
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc authored Dec 8, 2024
1 parent 621d59f commit 06ca531
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/TunerBatchIrace.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#' learner = learner,
#' resampling = rsmp("holdout"),
#' measure = msr("classif.ce"),
#' term_evals = 42
#' term_evals = 200
#' )
#'
#' # best performing hyperparameter configuration
Expand Down
2 changes: 1 addition & 1 deletion man/mlr_tuners_irace.Rd

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

8 changes: 4 additions & 4 deletions tests/testthat/test_TunerBatchIrace.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
skip_if_not_installed("irace")

test_that("TunerIrace", {
z = test_tuner("irace", term_evals = 42)
z = test_tuner("irace", term_evals = 200)
instance = z$inst
archive = instance$archive$data
tuner = z$tuner
Expand Down Expand Up @@ -31,7 +31,7 @@ test_that("TunerIrace works with dependencies", {
learner = lrn("regr.rpart"),
resampling = rsmp("holdout"),
measures = msr("regr.mse"),
terminator = trm("evals", n_evals = 96),
terminator = trm("evals", n_evals = 200),
search_space = search_space)
tuner = tnr("irace")
x = capture.output({tuner$optimize(instance)})
Expand All @@ -50,7 +50,7 @@ test_that("TunerIrace works with logical parameters", {
learner = lrn("regr.rpart"),
resampling = rsmp("holdout"),
measures = msr("regr.mse"),
terminator = trm("evals", n_evals = 96),
terminator = trm("evals", n_evals = 200),
search_space = search_space)
tuner = tnr("irace")
x = capture.output({tuner$optimize(instance)})
Expand Down Expand Up @@ -78,7 +78,7 @@ test_that("TunerIrace works with unnamed discrete values", {
learner = lrn("regr.rpart"),
resampling = rsmp("holdout"),
measures = msr("regr.mse"),
terminator = trm("evals", n_evals = 96),
terminator = trm("evals", n_evals = 200),
search_space = search_space)
tuner = tnr("irace")
x = capture.output({expect_data_table(tuner$optimize(instance))})
Expand Down

0 comments on commit 06ca531

Please sign in to comment.