Learn R Programming

MetaClean (version 1.0.0)

getEvaluationMeasures: Calculate Evaluation Measures

Description

Calculate evaluation measures using the predictions generated during cross-validation.

Usage

getEvaluationMeasures(models, k, repNum)

Arguments

models

list. A list of trained models, like that returned by trainClassifiers()

k

integer. Number of folds used in cross-validation

repNum

integer. Number of cross-validation rounds

Value

A dataframe with the following columns: Model, RepNum, Pass_FScore, Pass_Recall, Pass_Precision, Fail_FScore, Fail_Recall, Fail_Precision, Accuracy

Examples

Run this code
# NOT RUN {
# calculate all seven evaluation measures for each model and each round of cross-validation
# }
# NOT RUN {
evalMeasuresDF <- getEvaluationMeasures(models=models, k=5, repNum=10)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab