Skip to content

Commit f9faf4e

Browse files
committed
Update test that used a core model arg.
1 parent 1860efb commit f9faf4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test_rand_forest_ranger.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ num_pred <- c("funded_amnt", "annual_inc", "num_il_tl")
1111
lc_basic <- rand_forest()
1212
lc_ranger <- rand_forest(others = list(seed = 144))
1313

14-
bad_ranger_cls <- rand_forest(others = list(min.node.size = -10))
14+
bad_ranger_cls <- rand_forest(others = list(replace = "bad"))
1515
bad_rf_cls <- rand_forest(others = list(sampsize = -10))
1616

1717
ctrl <- fit_control(verbosity = 1, catch = FALSE)
@@ -160,7 +160,7 @@ num_pred <- names(mtcars)[3:6]
160160

161161
car_basic <- rand_forest()
162162

163-
bad_ranger_reg <- rand_forest(others = list(min.node.size = -10))
163+
bad_ranger_reg <- rand_forest(others = list(replace = "bad"))
164164
bad_rf_reg <- rand_forest(others = list(sampsize = -10))
165165

166166
ctrl <- list(verbosity = 1, catch = FALSE)

0 commit comments

Comments
 (0)