r descr_models("decision_tree", "rpartScore")

Tuning parameters

defaults <-
  tibble::tibble(
    parsnip = c("tree_depth", "min_n", "cost_complexity"),
    default = c("30L", "2L", "0.01")
  )

param <-
  decision_tree() |>
  set_engine("rpartScore") |>
  set_mode("classification") |>
  make_parameter_list(defaults)

This model has r nrow(param) tuning parameters:

param$item

Translation from parsnip to the original package

#| label: rpart-cls-decision-tree-ordered
decision_tree(
  tree_depth = integer(1),
  min_n = integer(1),
  cost_complexity = double(1)
) |>
  set_engine("rpartScore") |>
  set_mode("classification") |>
  translate()

Preprocessing requirements

#| child: template-tree-split-factors.Rmd

Case weights

#| child: template-uses-case-weights.Rmd

Prediction types

#| label: predict-types
parsnip:::get_from_env("decision_tree_predict") |>
  dplyr::filter(engine == "rpartScore") |>
  dplyr::select(mode, type)

References



Try the parsnip package in your browser

Any scripts or data that you put into this service are public.

parsnip documentation built on May 14, 2026, 5:08 p.m.