r descr_models("C5_rules", "C5.0")

Tuning Parameters

defaults <- 
  tibble::tibble(parsnip = c("trees", "min_n"),
                 default = c("1L",       "2L"))

param <-
  C5_rules() %>% 
  set_engine("C5.0") %>% 
  make_parameter_list(defaults)

This model has r nrow(param) tuning parameters:

param$item

Note that C5.0 has a tool for early stopping during boosting where less iterations of boosting are performed than the number requested. C5_rules() turns this feature off (although it can be re-enabled using [C50::C5.0Control()]).

Translation from parsnip to the underlying model call (classification)

r uses_extension("C5_rules", "C5.0", "classification")

library(rules)

C5_rules(
  trees = integer(1),
  min_n = integer(1)
) %>%
  set_engine("C5.0") %>%
  set_mode("classification") %>%
  translate()

Preprocessing requirements


Case weights


Saving fitted model objects


References



topepo/parsnip documentation built on April 16, 2024, 3:23 a.m.