Skip to content

Commit 73adda6

Browse files
committed
remove tuning parameter for rpart
1 parent f1773fc commit 73adda6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inst/add-in/parsnip_model_db.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ get_tunable_param <- function(mode, package, model, engine) {
5252
if (model %in% c("bag_tree", "bag_mars")) {
5353
res <- res[0,]
5454
}
55+
if (engine %in% c("rpart")) {
56+
res <- res[res$parameter != "tree-depth",]
57+
}
5558
res
5659

5760
}

0 commit comments

Comments
 (0)