Number of randomly sampled predictors
The number of predictors that will be randomly sampled at each split when creating tree models.
mtry(range = c(1L, unknown()), trans = NULL) mtry_long(range = c(0L, unknown()), trans = log10_trans())
range |
A two-element vector holding the defaults for the smallest and largest possible values, respectively. |
trans |
A |
This parameter is used for regularized or penalized models such as
parsnip::rand_forest()
and others. mtry_long()
has the values on the
log10 scale and is helpful when the data contain a large number of predictors.
Since the scale of the parameter depends on the number of columns in the
data set, the upper bound is set to unknown
but can be filled in via the
finalize()
method.
mtry(c(1L, 10L)) # in original units mtry_long(c(0, 5)) # in log10 units
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.