best_cm: Confusion Matrix for the Best Model

Description Usage Arguments Value Examples

View source: R/best_cm.r

Description

Given an loocv() output and Cal_AUC() output, this function calculates the confusion matrix for the label produced from the model with optimized number of features.

Usage

1
best_cm(CV = cv, auc_out = auc_out)

Arguments

CV

Output object from loocv().

auc_out

Output object form Cal_AUC()

Value

A list of confusionMatrix class.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(training)

### using leave-one-out cross-validation ###
cv = loocv(training)

### using 10-fold cross-validation ###
cv = tfcv(training)

auc_out = Cal_AUC(cv)

best_cm(CV=cv,auc_out=auc_out)

qunfengdong/DMBC documentation built on April 22, 2020, 7:27 p.m.