For this engine, there are multiple modes: censored regression, classification, and regression
This model has 3 tuning parameters:
trees
: # Trees (type: integer, default: 500L)
min_n
: Minimal Node Size (type: integer, default: 5L)
mtry
: # Randomly Selected Predictors (type: integer, default: ceiling(sqrt(n_predictors)))
Additionally, this model has one engine-specific tuning parameter:
split_min_stat
: Minimum test statistic required to split a node. Defaults are 3.841459
for censored regression (which is roughly a p-value of 0.05) and 0
for classification and regression. For classification, this tuning parameter should be between 0 and 1, and for regression it should be greater than or equal to 0. Higher values of this parameter cause trees grown by aorsf
to have less depth.The censored extension package is required to fit this model.
library(censored)
rand_forest() %>%
set_engine("aorsf") %>%
set_mode("censored regression") %>%
translate()
## Random Forest Model Specification (censored regression)
##
## Computational engine: aorsf
##
## Model fit template:
## aorsf::orsf(formula = missing_arg(), data = missing_arg(), weights = missing_arg())
The bonsai extension package is required to fit this model.
library(bonsai)
rand_forest() %>%
set_engine("aorsf") %>%
set_mode("regression") %>%
translate()
## Random Forest Model Specification (regression)
##
## Computational engine: aorsf
##
## Model fit template:
## aorsf::orsf(formula = missing_arg(), data = missing_arg(), weights = missing_arg(),
## n_thread = 1, verbose_progress = FALSE)
The bonsai extension package is required to fit this model.
library(bonsai)
rand_forest() %>%
set_engine("aorsf") %>%
set_mode("classification") %>%
translate()
## Random Forest Model Specification (classification)
##
## Computational engine: aorsf
##
## Model fit template:
## aorsf::orsf(formula = missing_arg(), data = missing_arg(), weights = missing_arg(),
## n_thread = 1, verbose_progress = FALSE)
This engine does not require any special encoding of the predictors. Categorical predictors can be partitioned into groups of factor levels (e.g. {a, c}
vs {b, d}
) when splitting at a node. Dummy variables are not required for this model.
This model can utilize case weights during model fitting. To use them, see the documentation in [case_weights] and the examples on tidymodels.org
.
The fit()
and fit_xy()
arguments have arguments called case_weights
that expect vectors of case weights.
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).
Jaeger BC, Long DL, Long DM, Sims M, Szychowski JM, Min YI, Mcclure LA, Howard G, Simon N. Oblique random survival forests. Annals of applied statistics 2019 Sep; 13(3):1847-83. DOI: 10.1214/19-AOAS1261
Jaeger BC, Welden S, Lenoir K, Pajewski NM. aorsf: An R package for supervised learning using the oblique random survival forest. Journal of Open Source Software 2022, 7(77), 1 4705. \doi{10.21105/joss.04705}.
Jaeger BC, Welden S, Lenoir K, Speiser JL, Segar MW, Pandey A, Pajewski NM. Accelerated and interpretable oblique random survival forests. arXiv e-prints 2022 Aug; arXiv-2208. URL: https://arxiv.org/abs/2208.01129
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.