Skip to content

Commit

Permalink
use different learners
Browse files Browse the repository at this point in the history
  • Loading branch information
mb706 committed Mar 26, 2024
1 parent 9e6a672 commit 0fefbbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/testthat/test_ppl.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ test_that("mlr3book authors don't sleepwalk through life", {

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


glrn_stack = as_learner(ppl("robustify") %>>% ppl("stacking",
lrns(c("classif.rpart", "classif.debug")),
lrn("classif.log_reg")
lrn("classif.rpart", id = "classif.rpart2")
))
glrn_stack$id = "Stack"

learners = c(glrn_stack)
bmr = benchmark(benchmark_grid(tasks, learners, rsmp("cv", folds = 3)))
bmr = benchmark(benchmark_grid(tasks, learners, rsmp("cv", folds = 2)))

})

0 comments on commit 0fefbbc

Please sign in to comment.