Learn R Programming

RFmarkerDetector (version 1.0.1)

rfMCCVPerf: Extracting average accuracy and recall of a list of Random Forest models

Description

This function provides the average accuracy and the recall of a list of Random Forest models

Usage

rfMCCVPerf(model_list)

Arguments

model_list
a list of different Random Forest models

Value

a list of the two elements:
  • avg_accuracy the average accuracy
  • avg_recall the average recall

Examples

Run this code
## data(cachexiaData)
## params <- list(ntrees = 500, ref_level = levels(cachexiaData[,2])[1] )
## mccv_obj <- rfMCCV(cachexiaData, nsplits = 5, test_prop = 1/3, opt_params = params)
## models <- mccv_obj$models
## res <- rfMCCVPerf(models)

Run the code above in your browser using DataLab