Skip to content

Commit 0fefbbc

Browse files
committed
use different learners
1 parent 9e6a672 commit 0fefbbc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/testthat/test_ppl.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,13 @@ test_that("mlr3book authors don't sleepwalk through life", {
6262

6363
tasks = tsks(c("breast_cancer", "sonar"))
6464

65-
6665
glrn_stack = as_learner(ppl("robustify") %>>% ppl("stacking",
6766
lrns(c("classif.rpart", "classif.debug")),
68-
lrn("classif.log_reg")
67+
lrn("classif.rpart", id = "classif.rpart2")
6968
))
7069
glrn_stack$id = "Stack"
7170

7271
learners = c(glrn_stack)
73-
bmr = benchmark(benchmark_grid(tasks, learners, rsmp("cv", folds = 3)))
72+
bmr = benchmark(benchmark_grid(tasks, learners, rsmp("cv", folds = 2)))
7473

7574
})

0 commit comments

Comments
 (0)