Skip to content

Commit

Permalink
adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mb706 committed Aug 23, 2024
1 parent 511f846 commit 8687901
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test_GraphLearner.R
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ test_that("graphlearner predict type inference", {
lrn = GraphLearner$new(po("branch", 2) %>>% gunion(list(lrr, lfr)) %>>% po("unbranch"))
expect_equal(lrn$predict_type, "response")
lrn = GraphLearner$new(po("branch", 2) %>>% gunion(list(lrp, lfr)) %>>% po("unbranch"))
expect_equal(lrn$predict_type, "prob")
lrn$param_set$values$branch.selection = 2
expect_equal(lrn$predict_type, "response")

# with additional NOP in branch
Expand Down

0 comments on commit 8687901

Please sign in to comment.