Skip to content

Commit

Permalink
port fix from #46 for tree
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Jul 9, 2021
1 parent abaac2e commit 9720e0b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions R/tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ add_decision_tree_tree <- function() {

parsnip::set_dependency("decision_tree", eng = "tree", pkg = "tree")

parsnip::set_encoding(
model = "decision_tree",
eng = "tree",
mode = "regression",
options = list(
predictor_indicators = "none",
compute_intercept = FALSE,
remove_intercept = FALSE,
allow_sparse_x = FALSE
)
)

parsnip::set_fit(
model = "decision_tree",
eng = "tree",
Expand Down

0 comments on commit 9720e0b

Please sign in to comment.