Description Usage Arguments Details See Also Examples
Make predictions from a stratified_rf model on new data.
1 2 3 4 |
object |
A stratified_rf model. |
data |
New data on which to make predictions (data.frame only). Must have the same names as the data used to build the model. |
type |
Prediction type. Either "class" to get the predicted class or "prob" to get the voting scores for each class. |
agg_type |
How to combine the predictions from individual trees. Either "prob" to average the probabilities output from each tree or "class" to count the final predictions from each. |
vote_type |
How to weight the outputs from each tree. Either "simple" to average them, or "weighted" for a weighted average according to their OOB classification accuracy. |
na.action |
Function indicating how to handle missing values (see the 'C50' documentation for details). |
threshold |
Count only votes from trees whose out-of-bag classification accuracy is above this threshold. Must be a number between 0 and 1. |
... |
other options (not currently used) |
Note that by default, for classification models the predictions are made quite differently from the original Random Forest algorithm.
'C50' library: https://cran.r-project.org/package=C50
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.