Skip to content

Commit

Permalink
Merge branch 'main' into pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Nov 22, 2024
2 parents 055cafc + b21a0ad commit d566c85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions tests/testthat/test_AutoTuner.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ test_that("AutoTuner works with graphlearner", {
})

test_that("Nested resampling works with graphlearner", {
skip_if_not_installed("mlr3pipelines")
skip_if(packageVersion("mlr3pipelines") < "0.5.3")
skip_if_not_installed("mlr3pipelines", "0.5.3")

gl = MAKE_GL()
task = tsk("iris")
Expand Down Expand Up @@ -273,8 +272,7 @@ test_that("search space from TuneToken works", {
})

test_that("AutoTuner get_base_learner method works", {
skip_if_not_installed("mlr3pipelines")
skip_if(packageVersion("mlr3pipelines") < "0.5.3")
skip_if_not_installed("mlr3pipelines", "0.5.3")
`%>>%` = getFromNamespace("%>>%", asNamespace("mlr3pipelines"))

# simple learner
Expand Down
4 changes: 1 addition & 3 deletions tests/testthat/test_Tuner.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ test_that("proper error when primary search space is empty", {
})

test_that("internal tuning: branching", {
skip_if_not_installed("mlr3pipelines")
skip_if(packageVersion("mlr3pipelines") < "0.5.3")

skip_if_not_installed("mlr3pipelines", "0.5.3")
# this case is special, because not all internally tuned parameters are present in every iteration, only those that
# are in the active branch are
glrn = mlr3pipelines::ppl("branch", graphs = list(
Expand Down

0 comments on commit d566c85

Please sign in to comment.