getPerformance: performance metrics for model

Description Usage Arguments Value

View source: R/plotPerf_simple.R

Description

performance metrics for model

Usage

1
getPerformance(res, predClasses)

Arguments

res

(data.frame) result from predicting labels on held-out test set. output of predict() function. columns include ID, STATUS (ground truth) and PRED_CLASS (predicted label)

predClasses

(character) patient labels used by classifier

Value

(list) 1) rocCurve: ROCR performance object for ROC curve 2) prCurve: ROCR performance object for PR curve 3) auroc: Area under ROC curve 4) aupr: Area under PR curve 5) accuracy: Accuracy


BaderLab/netDx documentation built on Sept. 26, 2021, 9:13 a.m.