File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ # model type functions message informatively with unknown implementation
2+
3+ Code
4+ bag_tree() %>% set_engine("rpart")
5+ Message
6+ parsnip could not locate an implementation for `bag_tree` model specifications using the `rpart` engine.
7+ Output
8+ Bagged Decision Tree Model Specification (unknown)
9+
10+ Main Arguments:
11+ cost_complexity = 0
12+ min_n = 2
13+
14+ Computational engine: rpart
15+
16+
Original file line number Diff line number Diff line change @@ -98,3 +98,11 @@ test_that('correct mtry', {
9898
9999})
100100
101+ # ----------------------------------------------------------------------------
102+
103+ test_that(' model type functions message informatively with unknown implementation' , {
104+ expect_snapshot(
105+ bag_tree() %> %
106+ set_engine(" rpart" )
107+ )
108+ })
You can’t perform that action at this time.
0 commit comments