powered by
Calculates error statistics for out-of-bag samples from a stratified_rf model.
# S3 method for stratified_rf summary(object, ...)
A stratified_rf model.
other options (not currently used)
Predictions for a class are made by averaging class probabilities across trees rather than by a majority vote. All trees are weighted equally.
data(iris) groups <- list(c("Sepal.Length","Sepal.Width"),c("Petal.Length","Petal.Width")) mtry <- c(1,1) m <- stratified_rf(iris,"Species",groups,mtry,ntrees=2,multicore=FALSE) summary(m)
Run the code above in your browser using DataLab