Give the predictions for the new data by the forest
model built from
1 2 3
object of class
the data that needs to be predicted. Its format
should be the same as that for
the type of prediction required, a character vector indicating the types of output, and can be one of the values below:
optional additional arguments. At present no additional arguments are used.
a list of predictions for the new data with corresponding components for
each type of predictions. For
vector of length
nrow(newdata), otherwise, a matrix of
nrow(newdata) * (number of class label). For example, if given
type=c("class", "prob") and the return value is
res$class is a vector of predicted class labels of length
res$prob is a matrix of class probabilities.
He Zhao and Graham Williams (SIAT, CAS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.