r descr_models("rand_forest", "aorsf")

Tuning Parameters

defaults <-
  tibble::tibble(parsnip = c("trees", "min_n", "mtry"),
                 default = c("500L", "5L", "ceiling(sqrt(n_predictors))"))

param <-
  rand_forest() %>%
  set_engine("aorsf") %>%
  set_mode("censored regression") %>%
  make_parameter_list(defaults) %>%
  distinct()

This model has r nrow(param) tuning parameters:

param$item

Additionally, this model has one engine-specific tuning parameter:

Translation from parsnip to the original package (censored regression)

r uses_extension("rand_forest", "aorsf", "censored regression")

library(censored)

rand_forest() %>%
  set_engine("aorsf") %>%
  set_mode("censored regression") %>%
  translate()

Translation from parsnip to the original package (regression)

r uses_extension("rand_forest", "aorsf", "regression")

library(bonsai)

rand_forest() %>%
  set_engine("aorsf") %>%
  set_mode("regression") %>%
  translate()

Translation from parsnip to the original package (classification)

r uses_extension("rand_forest", "aorsf", "classification")

library(bonsai)

rand_forest() %>%
  set_engine("aorsf") %>%
  set_mode("classification") %>%
  translate()

Preprocessing requirements


Case weights


Other details

Predictions of survival probability at a time exceeding the maximum observed event time are the predicted survival probability at the maximum observed time in the training data.

The class predict method in aorsf uses the standard 'each tree gets one vote' approach, which is usually but not always consistent with the picking the class that has highest predicted probability. It is okay for this inconsistency to occur in aorsf because it is intentionally applying the traditional class prediction method for random forests, but in tidymodels it is preferable to embrace consistency. Thus, we opted to make predicted probability consistent with predicted class all the time by making the predicted class a function of predicted probability (see tidymodels/bonsai#78).

References



tidymodels/parsnip documentation built on Feb. 19, 2025, 2:10 a.m.