max_mtry_formula | R Documentation |
mtry
based on a formula and
data set. This is a safe approach for survival and/or multivariate models.Determine largest value of mtry from formula.
This function potentially caps the value of mtry
based on a formula and
data set. This is a safe approach for survival and/or multivariate models.
max_mtry_formula(mtry, formula, data)
mtry |
An initial value of |
formula |
A model formula. |
data |
The training set (data frame). |
A value for mtry
.
# should be 9
max_mtry_formula(200, cbind(wt, mpg) ~ ., data = mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.