pctCorrect | R Documentation |
For classification models, calculate the percent of individuals correctly classified in a specified percent of trees in the forest.
pctCorrect(x, pct = c(seq(0.8, 0.95, 0.05), 0.99))
x |
a |
pct |
vector of minimum percent of trees voting for each class. Can be
|
a matrix giving the percent of individuals correctly classified in
each class and overall for each threshold value specified in pct
.
Eric Archer eric.archer@noaa.gov
library(randomForest)
data(mtcars)
rf <- randomForest(factor(am) ~ ., mtcars, importance = TRUE)
pctCorrect(rf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.