.predict | R Documentation |
For classification, we sum the votes from all the forests,
.predict(forests, testData)
forests: |
a list of randomForest objects. |
testData: |
[data frame] new data to classify using the forests. It must have at least the columns in 'expl_vars'. (We want to predict the value of 'dep_var' for it.) |
a vector of length 'nrow(testData)'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.