Utility_Classifier: Utility functions for creating diagnostic plots for binary...

Utility_ClassifierR Documentation

Utility functions for creating diagnostic plots for binary classifiers.

Description

Utility functions for creating diagnostic plots for binary classifiers.

Usage

compute_auc(trueClass, predProb)

rocPlot(trueClass, predProb, groups = NA, colors = NA)

prcPlot(trueClass, predProb, groups = NA, colors = NA)

calibPlot(trueClass, predProb, groups = NA, colors = NA)

cumGainPlot(trueClass, predProb, groups = NA, colors = NA)

classifierDiagnosticPlots(
  trueClass,
  predProb,
  groups = NA,
  colors = NA,
  plotTypes = c("ROC", "PRC", "Calibration", "CumGain")
)

Arguments

trueClass

A factor of true class labels.

predProb

A numeric vector of predicted scores etc.

groups

A vector indicating strata. Disable by setting NA.

colors

A set of colors. The length should be the same with the number of groups.

plotTypes

A character vector indicating which types of plots should be generated.


masato-ogishi/Repitope documentation built on Feb. 14, 2023, 5:47 a.m.