View source: R/supervised-trees.R
| tl_fit_forest | R Documentation |
Fit a random forest model
tl_fit_forest(
data,
formula,
is_classification = FALSE,
ntree = 500,
mtry = NULL,
importance = TRUE,
...
)
data |
A data frame containing the training data |
formula |
A formula specifying the model |
is_classification |
Logical indicating if this is a classification problem |
ntree |
Number of trees to grow (default: 500) |
mtry |
Number of variables randomly sampled at each split |
importance |
Whether to compute variable importance (default: TRUE) |
... |
Additional arguments to pass to randomForest() |
A fitted random forest model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.